aboutsummaryrefslogtreecommitdiffhomepage
path: root/desktop/sources/scripts/lib
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2019-05-17 15:15:39 +0100
committerDevine Lu Linvega <[email protected]>2019-05-17 15:15:39 +0100
commit13603fce74c4824ed2a3dd2de895e1ac97765f26 (patch)
tree5098ae97181286726809f60abba1e14e9abbac0a /desktop/sources/scripts/lib
parented054e07479d71a9537438e035cf7f0ac6f2c673 (diff)
downloadOrca-13603fce74c4824ed2a3dd2de895e1ac97765f26.tar.gz
Orca-13603fce74c4824ed2a3dd2de895e1ac97765f26.zip
Progress on v126
Diffstat (limited to 'desktop/sources/scripts/lib')
-rw-r--r--desktop/sources/scripts/lib/theme.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/sources/scripts/lib/theme.js b/desktop/sources/scripts/lib/theme.js
index d19f1f9..d4a20a0 100644
--- a/desktop/sources/scripts/lib/theme.js
+++ b/desktop/sources/scripts/lib/theme.js
@@ -44,7 +44,7 @@ export default function Theme (_default) {
}
this.setImage = function (path) {
- document.body.style.backgroundImage = path && fs.existsSync(path) ? `url(${path})` : ''
+ document.body.style.backgroundImage = path && fs.existsSync(path) && document.body.style.backgroundImage !== `url(${path})` ? `url(${path})` : ''
}
function parse (any) {