소스 검색

Disable file access check for firefox

simov 8 년 전
부모
커밋
26c3a59bb7
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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()
 })