summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-08-22 15:49:24 -0400
committerGitHub <noreply@github.com>2020-08-22 15:49:24 -0400
commitf0c974d319d9fb4c50c9a4a8f665a642edb77d58 (patch)
tree71855fd155b8072e9ce627a6643938065ef44b5d /ext/bg
parent9fa0f2a56a79159227f1f42455157fe9c84132d3 (diff)
Move generateId to core.js (#748)
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/backend.js2
-rw-r--r--ext/bg/js/settings/settings-controller.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index 65f4d6b3..810370c4 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -739,7 +739,7 @@ class Backend {
if (typeof tabId !== 'number') { throw new Error('Sender has invalid tab ID'); }
const frameId = sender.frameId;
- const id = yomichan.generateId(16);
+ const id = generateId(16);
const details = {
name: 'action-port',
id
diff --git a/ext/bg/js/settings/settings-controller.js b/ext/bg/js/settings/settings-controller.js
index 6479714d..4825d348 100644
--- a/ext/bg/js/settings/settings-controller.js
+++ b/ext/bg/js/settings/settings-controller.js
@@ -25,7 +25,7 @@ class SettingsController extends EventDispatcher {
constructor(profileIndex=0) {
super();
this._profileIndex = profileIndex;
- this._source = yomichan.generateId(16);
+ this._source = generateId(16);
this._pageExitPreventions = new Set();
this._pageExitPreventionEventListeners = new EventListenerCollection();
}