Skip to content

Commit 34800fc

Browse files
committed
修改回 local
1 parent 052da38 commit 34800fc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/app/service/content/scripting.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { type CustomEventMessage } from "@Packages/message/custom_event_message"
33
import { forwardMessage, type Server } from "@Packages/message/server";
44
import type { MessageSend } from "@Packages/message/types";
55
import { RuntimeClient } from "../service_worker/client";
6-
import { getStorageName, isFirefox, makeBlobURL } from "@App/pkg/utils/utils";
6+
import { getStorageName, makeBlobURL } from "@App/pkg/utils/utils";
77
import type { Logger } from "@App/app/repo/logger";
88
import LoggerCore from "@App/app/logger/core";
99
import 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页的处理
2324
export default class ScriptingRuntime {

src/app/service/service_worker/runtime.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

9393
export class RuntimeService {
9494
scriptMatchEnable: UrlMatch<string> = new UrlMatch<string>();

0 commit comments

Comments
 (0)