diff --git a/extension/content.js b/extension/content.js index c83c7621..ca5bcfd3 100644 --- a/extension/content.js +++ b/extension/content.js @@ -356,8 +356,6 @@ const readerStepper = (settingKey) => READER_STEPPERS.find((stepper) => stepper. // An extension reload or update leaves the previous copy running in its own isolated world with a // dead chrome.runtime. Ask it to stand down; v2.0.0 and older can't and still hold their root. document.dispatchEvent(new Event("mdg-content-superseded")); -// 3.5.x and older listen for the name from before the rename. Remove after 3.6. -document.dispatchEvent(new Event("boc-content-superseded")); const predecessorStillRunning = Boolean(document.getElementById(ids.root)); document.addEventListener("mdg-content-superseded", standDown, { once: true }); // What a superseded copy stops (standDown): the page listeners, observers and the URL watcher hang off this signal. diff --git a/extension/naming.selftest.js b/extension/naming.selftest.js index 79323bb3..bcee6994 100644 --- a/extension/naming.selftest.js +++ b/extension/naming.selftest.js @@ -11,7 +11,6 @@ const ALLOWED = [ ["extension/limits.js", "boc_"], // the migration's old key prefix ["extension/limits.selftest.js", "boc_"], // the migration test's old keys ["extension/history/history.selftest.js", "boc_"], // 摘读记录 runs the migration on load - ["extension/content.js", "boc-content-superseded"], // a 3.5.x copy in an open tab stands down on it; remove after 3.6 ["*", "bnjihpbocpimaipifanfkjjpfdbigggd"] // the Chrome Web Store extension id ]; const TEXT = /\.(js|mjs|css|html|json|md|svg|txt|py|sh|yml)$/;