1
0
Fork 1
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:
mr. M 2024-11-04 17:37:02 +01:00
parent f498a64413
commit ec65a69496
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
25 changed files with 8696 additions and 26 deletions

View 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}`);
}
},
}