Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit 3fe3450

Browse files
committed
fix(prefs): correct user agent replacement in initBeforeSessionStoreInit function
1 parent 0d72b63 commit 3fe3450

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/apps/main/core/static/prefs/index.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@ export function initBeforeSessionStoreInit() {
88

99
//https://searchfox.org/mozilla-central/rev/e24277e20c492b4a785b4488af02cca062ec7c2c/remote/cdp/JSONHandler.sys.mjs#60
1010

11-
const {userAgent} = Cc[
11+
const { userAgent } = Cc[
1212
"@mozilla.org/network/protocol;1?name=http"
1313
].getService(Ci.nsIHttpProtocolHandler);
14-
prefs.setStringPref("general.useragent.override",
15-
userAgent.replace("Noraneko","Firefox")
16-
)
14+
prefs.setStringPref(
15+
"general.useragent.override",
16+
userAgent.replace("Floorp", "Firefox"),
17+
);
1718
prefs.setBoolPref("browser.preferences.moreFromMozilla", false);
1819
}
1920

2021
export function init() {
21-
22-
}
22+
// nothing
23+
}

0 commit comments

Comments
 (0)