Skip to content

Commit

Permalink
Check the vibrancy config is existing (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
janosorcsik authored and sindresorhus committed Oct 8, 2019
1 parent 4b95f16 commit 06304a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const schema: {[Key in keyof StoreType]: Store.Schema} = {
function updateVibrancySetting(store: Store): void {
const vibrancy = store.get('vibrancy');

if (!is.macos) {
if (!is.macos || !vibrancy) {
store.set('vibrancy', 'none');
} else if (vibrancy === true) {
store.set('vibrancy', 'full');
Expand Down

0 comments on commit 06304a3

Please sign in to comment.