Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initiate the transferable object.

  • Loading branch information...
commit 21b111c6bcec3cb4e2fec7d07d305db24c5f8fe2 1 parent 69e9317
@scrapmac authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  bootstrap.js
View
3  bootstrap.js
@@ -1900,6 +1900,9 @@ function changeUI(window) {
// add Unicode & HTML flavors to the transferable widget
let trans = Cc["@mozilla.org/widget/transferable;1"].createInstance(Ci.nsITransferable);
if (!trans) return;
+ if ("init" in trans) {
+ trans.init(null);
+ }
trans.addDataFlavor("text/unicode");
trans.setTransferData("text/unicode", str, copyURL.length * 2);
trans.addDataFlavor("text/html");
Please sign in to comment.
Something went wrong with that request. Please try again.