From f0c974d319d9fb4c50c9a4a8f665a642edb77d58 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 22 Aug 2020 15:49:24 -0400 Subject: Move generateId to core.js (#748) --- ext/bg/js/backend.js | 2 +- ext/bg/js/settings/settings-controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/bg/js') 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(); } -- cgit v1.2.3