Browse Source

Disable file access check for firefox

simov 8 năm trước cách đây
mục cha
commit
26c3a59bb7
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      content/options.js

+ 3 - 1
content/options.js

@@ -117,7 +117,9 @@ var events = {
 }
 
 chrome.extension.isAllowedFileSchemeAccess((isAllowedAccess) => {
-  state.file = isAllowedAccess
+  state.file = /Firefox/.test(navigator.userAgent)
+    ? true // Allow access to file URLs options isn't working on FF
+    : isAllowedAccess
   m.redraw()
 })