aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-04-04 17:32:58 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2020-04-05 19:57:37 +0300
commite4fc53480f36b56abba0ab1cb20f6aad7bf4a004 (patch)
tree5fc450d75535aa0ecdfacbc5204a0fc532f34f23 /ext/fg/js/popup.js
parent668be6224b5db22e6c55afbb4bc676b7d1a149d9 (diff)
move broadcastRootPopupInformation to Frontend
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r--ext/fg/js/popup.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index fb3e56b4..60dc16dd 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -17,7 +17,6 @@
*/
/* global
- * apiForward
* apiGetMessageToken
* apiInjectStylesheet
*/
@@ -69,6 +68,10 @@ class Popup {
return this._depth;
}
+ get frameId() {
+ return this._frameId;
+ }
+
get url() {
return window.location.href;
}
@@ -79,12 +82,6 @@ class Popup {
return false;
}
- broadcastRootPopupInformation() {
- if (this._depth === 0) {
- apiForward('rootPopupInformation', {popupId: this._id, frameId: this._frameId});
- }
- }
-
async setOptions(options) {
this._options = options;
this.updateTheme();