From df2bea47bb500b258157d084725751055ea6667e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ante=20Bari=C4=87?= Date: Sun, 25 Aug 2019 23:06:49 +0200 Subject: [PATCH] Bump web storage object to 1.0.5 (#8) --- src/assets/js/state.js | 4 +- src/assets/js/web-storage-object.js | 99 +++++++++++++++++++++++------ 2 files changed, 82 insertions(+), 21 deletions(-) diff --git a/src/assets/js/state.js b/src/assets/js/state.js index 7be4867..e03d42d 100644 --- a/src/assets/js/state.js +++ b/src/assets/js/state.js @@ -125,7 +125,7 @@ browser.runtime.onMessageExternal.addListener((request, sender, sendResponse) => name: 'SILENCE_MY_BROTHER', value: { installed: true, - isActive: settings.isActive || false, + isActive: settings.isActive, version: manifest.version } }) @@ -134,7 +134,7 @@ browser.runtime.onMessageExternal.addListener((request, sender, sendResponse) => toggleClippy() sendResponse({ name: 'SILENCE_MY_BROTHER', - value: settings.isActive || false + value: settings.isActive }) break default: diff --git a/src/assets/js/web-storage-object.js b/src/assets/js/web-storage-object.js index f246a33..36d8c47 100644 --- a/src/assets/js/web-storage-object.js +++ b/src/assets/js/web-storage-object.js @@ -1,9 +1,9 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.webStorageObject = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i