diff options
Diffstat (limited to 'ext/js/app/popup-factory.js')
-rw-r--r-- | ext/js/app/popup-factory.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/js/app/popup-factory.js b/ext/js/app/popup-factory.js index 6fa50796..41984841 100644 --- a/ext/js/app/popup-factory.js +++ b/ext/js/app/popup-factory.js @@ -47,6 +47,7 @@ export class PopupFactory { */ prepare() { this._frameOffsetForwarder.prepare(); + /* eslint-disable no-multi-spaces */ yomitan.crossFrame.registerHandlers([ ['PopupFactory.getOrCreatePopup', {async: true, handler: this._onApiGetOrCreatePopup.bind(this)}], ['PopupFactory.setOptionsContext', {async: true, handler: this._onApiSetOptionsContext.bind(this)}], @@ -64,6 +65,7 @@ export class PopupFactory { ['PopupFactory.getFrameSize', {async: true, handler: this._onApiGetFrameSize.bind(this)}], ['PopupFactory.setFrameSize', {async: true, handler: this._onApiSetFrameSize.bind(this)}] ]); + /* eslint-enable no-multi-spaces */ } /** @@ -72,12 +74,12 @@ export class PopupFactory { * @returns {Promise<import('popup').PopupAny>} */ async getOrCreatePopup({ - frameId=null, - id=null, - parentPopupId=null, - depth=null, - popupWindow=false, - childrenSupported=false + frameId = null, + id = null, + parentPopupId = null, + depth = null, + popupWindow = false, + childrenSupported = false }) { // Find by existing id if (id !== null) { |