Added space after // everywhere where relevant
This commit is contained in:
parent
7f252c75b8
commit
70511e2722
3 changed files with 20 additions and 20 deletions
|
@ -16,7 +16,7 @@ if (!("toJSON" in Error.prototype))
|
||||||
|
|
||||||
|
|
||||||
// This object allows other scripts to access the list mapping containers to their proxies
|
// This object allows other scripts to access the list mapping containers to their proxies
|
||||||
window.proxifiedContainers = {
|
proxifiedContainers = {
|
||||||
|
|
||||||
// Slightly modified version of 'retrieve' which returns a direct proxy whenever an error is met.
|
// Slightly modified version of 'retrieve' which returns a direct proxy whenever an error is met.
|
||||||
retrieveFromBackground: function(cookieStoreId = null) {
|
retrieveFromBackground: function(cookieStoreId = null) {
|
||||||
|
@ -35,8 +35,8 @@ window.proxifiedContainers = {
|
||||||
|
|
||||||
report_proxy_error: function(error, identifier = null) {
|
report_proxy_error: function(error, identifier = null) {
|
||||||
// Currently I print to console but this is inefficient
|
// Currently I print to console but this is inefficient
|
||||||
const relevant_id_str = identifier === null ? "" : " call supplied with id: " + identifier.toString() + " ";
|
const relevant_id_str = identifier === null ? "" : ` call supplied with id: ${identifier.toString()}`;
|
||||||
browser.extension.getBackgroundPage().console.log("proxifiedContainers error occured" + relevant_id_str + ": " + JSON.stringify(error));
|
browser.extension.getBackgroundPage().console.log(`proxifiedContainers error occured ${relevant_id_str}: ${JSON.stringify(error)}`);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Resolves to a proxy object which can be used in the return of the listener required for browser.proxy.onRequest.addListener
|
// Resolves to a proxy object which can be used in the return of the listener required for browser.proxy.onRequest.addListener
|
||||||
|
@ -98,7 +98,7 @@ window.proxifiedContainers = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assumes proxy is a properly formatted object
|
// Assumes proxy is a properly formatted object
|
||||||
window.proxifiedContainers.retrieve().then((proxifiedContainersStore) => {
|
proxifiedContainers.retrieve().then((proxifiedContainersStore) => {
|
||||||
let index = proxifiedContainersStore.findIndex(i => i.cookieStoreId === cookieStoreId);
|
let index = proxifiedContainersStore.findIndex(i => i.cookieStoreId === cookieStoreId);
|
||||||
|
|
||||||
if (index === -1) {
|
if (index === -1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue