diff options
author | Alex Yatskov <FooSoft@users.noreply.github.com> | 2019-10-05 09:20:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-05 09:20:45 -0700 |
commit | 46ab36180f486a19332c538401b4db12ffe1bda1 (patch) | |
tree | 81a90e3967a44715b7d5c7115b87f048fc40e291 /ext/fg/js/popup.js | |
parent | 440d6a91fd9c5122aa804b72171e4c15a496e58a (diff) | |
parent | fa7ee468c0b8b877bb6d94a031464525b1a87c6b (diff) |
Merge pull request #233 from toasted-nutbread/static-handlers
Static handlers
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r-- | ext/fg/js/popup.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 64da9aef..9dff6f28 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -56,17 +56,19 @@ class Popup { return new Promise((resolve) => { const parentFrameId = (typeof this.frameId === 'number' ? this.frameId : null); this.container.addEventListener('load', () => { - this.invokeApi('popupNestedInitialize', { - id: this.id, - depth: this.depth, - parentFrameId, + this.invokeApi('initialize', { + options: { + general: { + customPopupCss: options.general.customPopupCss + } + }, + popupInfo: { + id: this.id, + depth: this.depth, + parentFrameId + }, url: this.url }); - this.invokeApi('setOptions', { - general: { - customPopupCss: options.general.customPopupCss - } - }); resolve(); }); this.observeFullscreen(); |