Add Popup.isProxy
This commit is contained in:
parent
289a1849c4
commit
30e13354b3
@ -22,7 +22,7 @@ class Frontend extends TextScanner {
|
||||
super(
|
||||
window,
|
||||
ignoreNodes,
|
||||
[popup.getContainer()],
|
||||
popup.isProxy() ? [] : [popup.getContainer()],
|
||||
[(x, y) => this.popup.containsPoint(x, y)]
|
||||
);
|
||||
|
||||
|
@ -48,6 +48,10 @@ class PopupProxy {
|
||||
|
||||
// Public functions
|
||||
|
||||
isProxy() {
|
||||
return true;
|
||||
}
|
||||
|
||||
async setOptions(options) {
|
||||
const id = await this._getPopupId();
|
||||
return await this._invokeHostApi('setOptions', {id, options});
|
||||
|
@ -52,6 +52,10 @@ class Popup {
|
||||
|
||||
// Public functions
|
||||
|
||||
isProxy() {
|
||||
return false;
|
||||
}
|
||||
|
||||
async setOptions(options) {
|
||||
this.options = options;
|
||||
this.updateTheme();
|
||||
|
Loading…
Reference in New Issue
Block a user