Skip to content

Commit

Permalink
new Object() notation
Browse files Browse the repository at this point in the history
  • Loading branch information
James-E-A committed Sep 25, 2020
1 parent 2c35664 commit f9a5bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ browser.webRequest.onHeadersReceived.addListener(
let securityInfo = await browser.webRequest.getSecurityInfo(requestId,{certificateChain:true,rawDER:true});
switch(type){
case 'main_frame':
if(!(tabId in cachedSecurityInfosByTabIdAndURL)) cachedSecurityInfosByTabIdAndURL[tabId]={};
if(!(tabId in cachedSecurityInfosByTabIdAndURL)) cachedSecurityInfosByTabIdAndURL[tabId]=new Object();
cachedSecurityInfosByTabIdAndURL[tabId][requestUrl]=securityInfo;
return;
break;
Expand Down

0 comments on commit f9a5bfc

Please sign in to comment.