mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
PiP jsm error fix
This commit is contained in:
parent
645a665555
commit
a77cc8ae29
1 changed files with 3 additions and 3 deletions
|
|
@ -5,8 +5,7 @@
|
|||
|
||||
this.EXPORTED_SYMBOLS = ["PictureInPicture"];
|
||||
|
||||
const {utils: Cu} = Components;
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
Cu.import("resource://gre/modules/Timer.jsm");
|
||||
|
||||
// Each content process has its own module instance. Only a weak reference to
|
||||
|
|
@ -38,7 +37,8 @@ this.PictureInPicture = {
|
|||
},
|
||||
|
||||
open(browser, video) {
|
||||
let id = Services.uuid.generateUUID().toString();
|
||||
let id = Cc["@mozilla.org/uuid-generator;1"]
|
||||
.getService(Ci.nsIUUIDGenerator).generateUUID().toString();
|
||||
let request = ++this.request;
|
||||
let mm = browser.messageManager;
|
||||
let timer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue