Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion extension/naming.selftest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)$/;
Expand Down
Loading