diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-11-06 22:14:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 22:14:00 -0500 |
commit | 9c6ff387a0836a78b7a755cfc99828e09d6a6cf8 (patch) | |
tree | 5218136c06d9c01a25281934369e6f7d4386dfd8 /ext/bg/js/settings/popup-preview-frame-main.js | |
parent | b62c48822eeea948c0d78c5730f20793838d59da (diff) |
Popup preview update (#994)
* Add options.global.showPopupPreview option
* Add preview visibility control using a checkbox
* Add attribute on page load
* Disable animation until page is loaded
Diffstat (limited to 'ext/bg/js/settings/popup-preview-frame-main.js')
-rw-r--r-- | ext/bg/js/settings/popup-preview-frame-main.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/settings/popup-preview-frame-main.js b/ext/bg/js/settings/popup-preview-frame-main.js index 866b9f57..038327cd 100644 --- a/ext/bg/js/settings/popup-preview-frame-main.js +++ b/ext/bg/js/settings/popup-preview-frame-main.js @@ -32,6 +32,8 @@ const preview = new PopupPreviewFrame(frameId, popupFactory); await preview.prepare(); + + document.documentElement.dataset.loaded = 'true'; } catch (e) { yomichan.logError(e); } |