From 8095255186b057a78b08d3aa17a52113c0fe7c8c Mon Sep 17 00:00:00 2001 From: z0ccc Date: Mon, 1 Aug 2022 21:43:40 -0400 Subject: [PATCH] attachDebugger switched to typescript --- src/utils/{attachDebugger.js => attachDebugger.ts} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/utils/{attachDebugger.js => attachDebugger.ts} (96%) diff --git a/src/utils/attachDebugger.js b/src/utils/attachDebugger.ts similarity index 96% rename from src/utils/attachDebugger.js rename to src/utils/attachDebugger.ts index 53f8c0c..2babc64 100644 --- a/src/utils/attachDebugger.js +++ b/src/utils/attachDebugger.ts @@ -1,4 +1,4 @@ -const attachDebugger = (tabId) => { +const attachDebugger = (tabId: number) => { chrome.storage.sync.get( [ 'ipData', @@ -41,7 +41,7 @@ const attachDebugger = (tabId) => { () => { if ( chrome.runtime.lastError && - chrome.runtime.lastError.message.includes( + chrome.runtime.lastError.message?.includes( 'Timezone override is already in effect' ) ) {