mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-07 03:06:56 +00:00
Remove function default parameter syntax
This commit is contained in:
parent
be48c17b7f
commit
105c483ab7
@ -268,7 +268,10 @@ exports.copyStyles = function(srcDomNode,dstDomNode) {
|
||||
/*
|
||||
Copy plain text to the clipboard on browsers that support it
|
||||
*/
|
||||
exports.copyToClipboard = function(text = "",options = {},type = "text/plain") {
|
||||
exports.copyToClipboard = function(text,options,type) {
|
||||
var text = text || "";
|
||||
var options = options || {};
|
||||
var type = type || "text/plain";
|
||||
var textArea = document.createElement("textarea");
|
||||
textArea.style.position = "fixed";
|
||||
textArea.style.top = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user