fix(tauri) notification body optional, requestPermission() regression, closes #793 (#844)

* fix(tauri) notification body optional, title required

* fix(tauri) regression on requestPermission()
This commit is contained in:
Lucas Fernandes Nogueira
2020-07-16 19:17:41 -03:00
committed by GitHub
parent 0591f1f945
commit dac1db3983
5 changed files with 21 additions and 10 deletions

View File

@@ -220,7 +220,7 @@ switch (navigator.platform) {
return window.__TAURI__.promisified({
cmd: 'notification',
options: typeof options === 'string' ? {
body: options
title: options
} : options
})
}