Added space after // everywhere where relevant

This commit is contained in:
Samuel Crypto 2018-10-15 17:21:56 -04:00
parent 7f252c75b8
commit 70511e2722
3 changed files with 20 additions and 20 deletions

View file

@ -16,7 +16,7 @@ if (!("toJSON" in Error.prototype))
// 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.
retrieveFromBackground: function(cookieStoreId = null) {
@ -35,8 +35,8 @@ window.proxifiedContainers = {
report_proxy_error: function(error, identifier = null) {
// Currently I print to console but this is inefficient
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));
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)}`);
},
// 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
window.proxifiedContainers.retrieve().then((proxifiedContainersStore) => {
proxifiedContainers.retrieve().then((proxifiedContainersStore) => {
let index = proxifiedContainersStore.findIndex(i => i.cookieStoreId === cookieStoreId);
if (index === -1) {