aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-08-15 20:04:15 -0700
committerAlex Yatskov <alex@foosoft.net>2017-08-15 20:04:15 -0700
commit3362a68e06a16efa87a2ad7cc75f18f8f4b2ea25 (patch)
treecbada1c9b4ad21f6bd033e2a57a8cc5206d86a79 /ext/fg/js/popup.js
parent211e5d1155e82ccbbc188dc889600459a62229fb (diff)
frontend cleanup
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r--ext/fg/js/popup.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index 8cb16b5a..03958832 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2016 Alex Yatskov <alex@foosoft.net>
+ * Copyright (C) 2016-2017 Alex Yatskov <alex@foosoft.net>
* Author: Alex Yatskov <alex@foosoft.net>
*
* This program is free software: you can redistribute it and/or modify
@@ -87,6 +87,11 @@ class Popup {
this.container.style.visibility = 'visible';
}
+ async showOrphaned(elementRect, options) {
+ await this.show(elementRect, options);
+ this.invokeApi('orphaned');
+ }
+
hide() {
this.container.style.visibility = 'hidden';
}
@@ -108,9 +113,4 @@ class Popup {
invokeApi(action, params={}) {
this.container.contentWindow.postMessage({action, params}, '*');
}
-
- async onOrphaned(elementRect, options) {
- await this.show(elementRect, options);
- this.invokeApi('orphaned');
- }
}