diff --git a/js/ui/main.js b/js/ui/main.js index 9467d564b..36d759169 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -271,7 +271,7 @@ function getThemeStylesheet() { * Set the theme CSS file that the shell will load */ function setThemeStylesheet(cssStylesheet) { - _cssStylesheet = Gio.File.new_for_path(cssStylesheet); + _cssStylesheet = cssStylesheet ? Gio.File.new_for_path(cssStylesheet) : null; } /**