From ba92cf5f615faa5a1af77bd97bbe0c43c4900d5b Mon Sep 17 00:00:00 2001 From: Ro Date: Tue, 1 Sep 2020 14:53:13 -0700 Subject: [PATCH] fixed bug that was saving setting feature background url incorrectly --- brain/data/Settings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brain/data/Settings.js b/brain/data/Settings.js index 1325320..fc9829e 100644 --- a/brain/data/Settings.js +++ b/brain/data/Settings.js @@ -50,7 +50,9 @@ export default class Settings { } if (!_.isEqual(result.settings.global, payload.global)) { let bg = payload.global.background; - payload.global.background = bg.substr(21, bg.length); + let chunks = bg.split('/'); + let strip = chunks[0] + '/' + chunks[1] + chunks[2]; + payload.global.background = bg.substr(strip.length + 1, bg.length); result.settings.global = payload.global; needToUpdate = true; } else {