mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-03 03:11:23 +01:00
Fix Firefox account consent for 4.0.6
This commit is contained in:
1 parent
e500088e65
commit
ee20c7437c
20 files changed
+606
-331
No files matched your search
@@ -465,12 +465,11 @@ function prepareHermeticExtensionArtifact(sourceDirectory, apiOrigin) {
|
||||
false,
|
||||
"ryd.background.js still contains the production API origin after transformation.",
|
||||
);
|
||||
const changelogListener = `api.runtime.onInstalled.addListener((details) => {
|
||||
maybeShowChangelog(details);
|
||||
});`;
|
||||
if (!transformedBackground.includes(changelogListener)) {
|
||||
const changelogListener =
|
||||
/api\.runtime\.onInstalled\.addListener\(\(details\) => \{\r?\n maybeShowChangelog\(details\);\r?\n\}\);/g;
|
||||
if ((transformedBackground.match(changelogListener) ?? []).length !== 1) {
|
||||
removeOwnedTemporaryDirectory(temporaryRoot, "ryd-mv3-e2e-");
|
||||
throw new Error("ryd.background.js has no recognized first-install changelog listener to suppress.");
|
||||
throw new Error("ryd.background.js must have exactly one recognized first-install changelog listener to suppress.");
|
||||
}
|
||||
const hermeticBackground = transformedBackground.replace(
|
||||
changelogListener,
|
||||
|
||||
Reference in new issue
Block a user