diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-12 17:12:34 -0400 | 
|---|---|---|
| committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-10-12 19:00:24 -0400 | 
| commit | 883226b0451350a0c01841e6c9a192bbb76dd8b6 (patch) | |
| tree | dfd63e4b2464a0d3eee533c3eac9be31c80de55b /ext/fg/js/popup-proxy-host.js | |
| parent | c90bc75eb89f5a731f6e3366f6388b594a27b2aa (diff) | |
Update how custom CSS is applied
Diffstat (limited to 'ext/fg/js/popup-proxy-host.js')
| -rw-r--r-- | ext/fg/js/popup-proxy-host.js | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/ext/fg/js/popup-proxy-host.js b/ext/fg/js/popup-proxy-host.js index 74a5153a..bb323f64 100644 --- a/ext/fg/js/popup-proxy-host.js +++ b/ext/fg/js/popup-proxy-host.js @@ -45,6 +45,7 @@ class PopupProxyHost {              containsPoint: ({id, x, y}) => this.containsPoint(id, x, y),              termsShow: ({id, elementRect, writingMode, definitions, context}) => this.termsShow(id, elementRect, writingMode, definitions, context),              kanjiShow: ({id, elementRect, writingMode, definitions, context}) => this.kanjiShow(id, elementRect, writingMode, definitions, context), +            setCustomCss: ({id, css}) => this.setCustomCss(id, css),              clearAutoPlayTimer: ({id}) => this.clearAutoPlayTimer(id)          });      } @@ -126,6 +127,11 @@ class PopupProxyHost {          return await popup.kanjiShow(elementRect, writingMode, definitions, context);      } +    async setCustomCss(id, css) { +        const popup = this.getPopup(id); +        return popup.setCustomCss(css); +    } +      async clearAutoPlayTimer(id) {          const popup = this.getPopup(id);          return popup.clearAutoPlayTimer(); |