From b14a668baf041882472a1b596847923d9e8c3e4d Mon Sep 17 00:00:00 2001 From: Ro Date: Tue, 1 Sep 2020 14:57:10 -0700 Subject: [PATCH] fix for setting feature background url properly, bumped version number --- brain/data/Settings.js | 4 +++- package.json | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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 { diff --git a/package.json b/package.json index 7f0ad13..85700d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fipamo-beta", - "version": "1.2.0", + "version": "1.2.2", "private": true, "description": "The most chill blog framework ever.", "repository": "https://code.playvicio.us/Are0h/Fipamo", @@ -54,4 +54,4 @@ "devDependencies": { "nodemon": "^2.0.4" } -} +} \ No newline at end of file