Skip to content

Commit eff4da1

Browse files
authored
Merge pull request EFForg#13056 from koops76/patch-149
Replace parseInt with type cast in popup.js
2 parents 616191c + 29fb7a0 commit eff4da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chromium/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function setOption_(opt, value, callback) {
280280
function getTab(callback) {
281281
let url = new URL(window.location.href);
282282
if (url.searchParams.has('tabId')) {
283-
let parentId = parseInt(url.searchParams.get('tabId'));
283+
let parentId = Number(url.searchParams.get('tabId'));
284284
return chrome.tabs.get(parentId, callback);
285285
}
286286
chrome.tabs.query({active: true, lastFocusedWindow: true}, tabs => callback(tabs[0]));

0 commit comments

Comments
 (0)