Improve wallpaper feature
This commit is contained in:
parent
1dce62e42a
commit
37c80e8ef5
9 changed files with 32 additions and 48 deletions
|
|
@ -136,8 +136,6 @@ document.body.innerHTML = '<div id="app"></div>';
|
|||
const os = new MiOS();
|
||||
|
||||
os.init(async () => {
|
||||
if (os.store.state.settings.wallpaper) document.documentElement.style.backgroundImage = `url(${os.store.state.settings.wallpaper})`;
|
||||
|
||||
if ('Notification' in window && os.store.getters.isSignedIn) {
|
||||
// 許可を得ていなかったらリクエスト
|
||||
if (Notification.permission === 'default') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue