From f490684cfd9c74e019839100be0f337b71c4e868 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sat, 22 Sep 2018 22:50:32 +0200 Subject: [PATCH] probably fixed settings saving --- js/lib/ObjectCopy.js | 10 ++++++++++ manifest.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/js/lib/ObjectCopy.js b/js/lib/ObjectCopy.js index 43242da..14f0c61 100644 --- a/js/lib/ObjectCopy.js +++ b/js/lib/ObjectCopy.js @@ -32,6 +32,16 @@ class ObjectCopy { } } } + + // add the values that would otherwise be deleted back to our object. (We need that so user-defined + // sites don't get forgotten) + for(var k in existing) { + if (! out[k]) { + out[k] = existing[k]; + } + } + + return out; } static pruneUnused(existing, target, ignoreKeys) { diff --git a/manifest.json b/manifest.json index 0a10bea..39d9872 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Ultrawidify", - "version": "3.2.0-a2", + "version": "3.2.0-a3", "applications": { "gecko": { "id": "{cf02b1a7-a01a-4e37-a609-516a283f1ed3}"