Make PopupFactory.prepare non-async (#625)
This commit is contained in:
parent
3e68af8666
commit
6ee50b3c95
@ -438,7 +438,7 @@ class DisplaySearch extends Display {
|
|||||||
const {frameId} = await api.frameInformationGet();
|
const {frameId} = await api.frameInformationGet();
|
||||||
|
|
||||||
const popupFactory = new PopupFactory(frameId);
|
const popupFactory = new PopupFactory(frameId);
|
||||||
await popupFactory.prepare();
|
popupFactory.prepare();
|
||||||
|
|
||||||
const frontend = new Frontend(
|
const frontend = new Frontend(
|
||||||
frameId,
|
frameId,
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
const {frameId} = await api.frameInformationGet();
|
const {frameId} = await api.frameInformationGet();
|
||||||
|
|
||||||
const popupFactory = new PopupFactory(frameId);
|
const popupFactory = new PopupFactory(frameId);
|
||||||
await popupFactory.prepare();
|
popupFactory.prepare();
|
||||||
|
|
||||||
const preview = new PopupPreviewFrame(frameId, popupFactory);
|
const preview = new PopupPreviewFrame(frameId, popupFactory);
|
||||||
await preview.prepare();
|
await preview.prepare();
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const popupFactory = new PopupFactory(frameId);
|
const popupFactory = new PopupFactory(frameId);
|
||||||
await popupFactory.prepare();
|
popupFactory.prepare();
|
||||||
|
|
||||||
const frontend = new Frontend(
|
const frontend = new Frontend(
|
||||||
frameId,
|
frameId,
|
||||||
|
@ -241,7 +241,7 @@ class DisplayFloat extends Display {
|
|||||||
const {frameId} = await api.frameInformationGet();
|
const {frameId} = await api.frameInformationGet();
|
||||||
|
|
||||||
const popupFactory = new PopupFactory(frameId);
|
const popupFactory = new PopupFactory(frameId);
|
||||||
await popupFactory.prepare();
|
popupFactory.prepare();
|
||||||
|
|
||||||
const frontend = new Frontend(
|
const frontend = new Frontend(
|
||||||
frameId,
|
frameId,
|
||||||
|
@ -28,7 +28,7 @@ class PopupFactory {
|
|||||||
|
|
||||||
// Public functions
|
// Public functions
|
||||||
|
|
||||||
async prepare() {
|
prepare() {
|
||||||
api.crossFrame.registerHandlers([
|
api.crossFrame.registerHandlers([
|
||||||
['getOrCreatePopup', {async: false, handler: this._onApiGetOrCreatePopup.bind(this)}],
|
['getOrCreatePopup', {async: false, handler: this._onApiGetOrCreatePopup.bind(this)}],
|
||||||
['setOptionsContext', {async: true, handler: this._onApiSetOptionsContext.bind(this)}],
|
['setOptionsContext', {async: true, handler: this._onApiSetOptionsContext.bind(this)}],
|
||||||
|
Loading…
Reference in New Issue
Block a user