mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 10:39:59 +02:00
Translated files to a single monorepo
This commit is contained in:
parent
f498a64413
commit
ec65a69496
25 changed files with 8696 additions and 26 deletions
19
src/browser/base/zen-components/ZenActorsManager.mjs
Normal file
19
src/browser/base/zen-components/ZenActorsManager.mjs
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
// Utility to register JSWindowActors
|
||||
var gZenActorsManager = {
|
||||
_actors: new Set(),
|
||||
|
||||
addJSWindowActor(...args) {
|
||||
if (this._actors.has(args[0])) {
|
||||
// Actor already registered, nothing to do
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
ChromeUtils.registerWindowActor(...args);
|
||||
this._actors.add(args[0]);
|
||||
} catch (e) {
|
||||
console.warn(`Failed to register JSWindowActor: ${e}`);
|
||||
}
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue