diff --git a/index.html b/index.html index 982f95b..fa62400 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,7 @@ + diff --git a/public/bg_music.svg b/public/bg_music.svg deleted file mode 100644 index 7170801..0000000 --- a/public/bg_music.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/bg_playlist.svg b/public/bg_playlist.svg deleted file mode 100644 index 0c1eff5..0000000 --- a/public/bg_playlist.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 9e63a04..570151e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,9 @@ diff --git a/src/scripts/db.js b/src/scripts/db.js index c5a1e89..3f25ca1 100644 --- a/src/scripts/db.js +++ b/src/scripts/db.js @@ -16,6 +16,7 @@ export function useSetupDB() { req.onerror = e => { console.log('Please let me use indexedDB!!'); console.log(e); + alert(e.target.error.message); }; req.onsuccess = e => { diff --git a/src/scripts/util.js b/src/scripts/util.js index e781bd9..cef20ee 100644 --- a/src/scripts/util.js +++ b/src/scripts/util.js @@ -1,9 +1,19 @@ -export function usePrefs(key) { - if (localStorage) { - if (localStorage.get(key)) return true; - else return false; - } else return false; -} +export const useStore = () => { + try { + return window.localStorage; + } catch (err) { + alert(err); + + const error = i => { + alert("Failed to Access '" + i + "' Please Enable localStorage."); + }; + + return { + getItem: error, + setItem: error, + }; + } +}; export function useLazyLoad() { let lazyElems;