File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { type CustomEventMessage } from "@Packages/message/custom_event_message"
33import { forwardMessage , type Server } from "@Packages/message/server" ;
44import type { MessageSend } from "@Packages/message/types" ;
55import { RuntimeClient } from "../service_worker/client" ;
6- import { getStorageName , isFirefox , makeBlobURL } from "@App/pkg/utils/utils" ;
6+ import { getStorageName , makeBlobURL } from "@App/pkg/utils/utils" ;
77import type { Logger } from "@App/app/repo/logger" ;
88import LoggerCore from "@App/app/logger/core" ;
99import type { ValueUpdateDataEncoded } from "./types" ;
@@ -17,7 +17,8 @@ type PageOrContent = ValueOf<typeof PageOrContent>;
1717
1818// For Firefox, StorageArea.setAccessLevel is not implemented.
1919// See https://bugzilla.mozilla.org/show_bug.cgi?id=1724754
20- const deliveryStorage = isFirefox ( ) ? chrome . storage . local : chrome . storage . session ;
20+ // const deliveryStorage = isFirefox() ? chrome.storage.local : chrome.storage.session;
21+ const deliveryStorage = chrome . storage . local ; // 日后再处理
2122
2223// scripting页的处理
2324export default class ScriptingRuntime {
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import {
2121 getMetadataStr ,
2222 getStorageName ,
2323 getUserConfigStr ,
24- isFirefox ,
2524 obtainBlackList ,
2625 sourceMapTo ,
2726} from "@App/pkg/utils/utils" ;
@@ -88,7 +87,8 @@ const bgScriptStorageNames = new Set<string>();
8887
8988// For Firefox, StorageArea.setAccessLevel is not implemented.
9089// See https://bugzilla.mozilla.org/show_bug.cgi?id=1724754
91- const deliveryStorage = isFirefox ( ) ? chrome . storage . local : chrome . storage . session ;
90+ // const deliveryStorage = isFirefox() ? chrome.storage.local : chrome.storage.session;
91+ const deliveryStorage = chrome . storage . local ; // 日后再处理
9292
9393export class RuntimeService {
9494 scriptMatchEnable : UrlMatch < string > = new UrlMatch < string > ( ) ;
You can’t perform that action at this time.
0 commit comments