Răsfoiți Sursa

Disable file access check for firefox

simov 8 ani în urmă
părinte
comite
26c3a59bb7
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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()
 })