fixed bug that was saving setting feature background url incorrectly
This commit is contained in:
parent
d404925bcf
commit
ba92cf5f61
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,9 @@ export default class Settings {
|
||||||
}
|
}
|
||||||
if (!_.isEqual(result.settings.global, payload.global)) {
|
if (!_.isEqual(result.settings.global, payload.global)) {
|
||||||
let bg = payload.global.background;
|
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;
|
result.settings.global = payload.global;
|
||||||
needToUpdate = true;
|
needToUpdate = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue