Skip to content

Commit 07cc497

Browse files
Update background.js
1 parent 5e698d6 commit 07cc497

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/extension/background.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
288288
return true;
289289
}
290290
// everytime we get a new tabId, add it to the object
291-
while (isReactTimeTravel && !(tabId in tabsObj)) { // changed if to while 8/4/2023
291+
if (isReactTimeTravel && !(tabId in tabsObj)) {
292292
tabsObj[tabId] = createTabObj(tabTitle);
293293
}
294294

@@ -330,7 +330,6 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
330330
script.setAttribute('type', 'text/javascript');
331331
script.setAttribute('src', file);
332332
// eslint-disable-next-line prefer-template
333-
// document.title = tab + '-' + document.title; // error of injecting random number
334333
htmlBody.appendChild(script);
335334
};
336335

0 commit comments

Comments
 (0)