Skip to content

Commit fb8d80c

Browse files
committed
删除未使用代码
1 parent e913cf8 commit fb8d80c

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/pkg/utils/wakeup-ping.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ export const startRepetitivePing = () => {
1616
let counter = 0;
1717
let isMutationPending = false;
1818

19-
const customPingHandler = (e: Event) => {
20-
chrome.storage.session.set({ persistentWakeup: `${e.timeStamp}` });
21-
};
22-
2319
const pingNode = document.createComment("0");
2420

2521
const incrementCounter = () => {
@@ -30,8 +26,6 @@ export const startRepetitivePing = () => {
3026
}
3127
};
3228

33-
pingNode.addEventListener("custom-ping", customPingHandler);
34-
3529
const pingTask = async () => {
3630
channel.postMessage({});
3731
incrementCounter();

0 commit comments

Comments
 (0)