Minor lint fixes

This commit is contained in:
Samuel Crypto 2018-10-11 18:00:12 -04:00
parent 34bde83067
commit 2a78aceac6

View file

@ -1,8 +1,8 @@
//Below lets us print errors, huge thanks to Jonothan @ https://stackoverflow.com/questions/18391212/is-it-not-possible-to-stringify-an-error-using-json-stringify
if (!('toJSON' in Error.prototype))
Object.defineProperty(Error.prototype, 'toJSON', {
if (!("toJSON" in Error.prototype))
Object.defineProperty(Error.prototype, "toJSON", {
value: function() {
var alt = {};
let alt = {};
Object.getOwnPropertyNames(this).forEach(function(key) {
alt[key] = this[key];
@ -61,7 +61,7 @@ window.proxifiedContainers = {
} else {
const val = results_array.find(o => o.cookieStoreId === cookieStoreId);
if (typeof val !== "object" ) {
if (typeof val !== "object" || val === null) {
reject({
error: "doesnotexist",
message: ""