Skip to content

Commit afc372c

Browse files
committed
Fixed "Hide" feature
1 parent 2f792ba commit afc372c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

content-scripts.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,17 +348,17 @@ window.addEventListener('scroll', updateBoundingRectAll);
348348
window.addEventListener('mousewheel', updateBoundingRectAll);
349349

350350
window.addEventListener('DOMContentLoaded', function() {
351-
createUI();
351+
chrome.storage.local.get(function(items) {
352+
createUI();
352353

353-
observer();
354+
observer();
354355

355-
setInterval(observer, 1000)
356-
});
356+
setInterval(observer, 1000);
357357

358-
chrome.storage.local.get(function(items) {
359-
if (items.hidden === true) {
360-
ui.classList.add('frame-by-frame--perm');
361-
}
358+
if (items.hidden === true) {
359+
ui.classList.add('frame-by-frame--perm');
360+
}
361+
});
362362
});
363363

364364
chrome.storage.onChanged.addListener(function(changes) {

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "Frame By Frame",
44
"description": "Best Frame By Frame Tool. Works with all websites! Move your mouse cursor over video and use keyboard arrows to switch frames.",
5-
"version": "1.0.1",
5+
"version": "1.0.2",
66

77
"icons": {
88
"16": "icons/16.png",

0 commit comments

Comments
 (0)