mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-03-24 13:33:26 +08:00
refactor: use fetch api instead of axios
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import App from '../src/app.js';
|
||||
|
||||
|
||||
window.json = async fileName=>(await axios(`../data/${fileName}.json`)).data;
|
||||
window.json = async fileName => await (await fetch(`../data/${fileName}.json`)).json();
|
||||
|
||||
// Pssst, I've created a github package - https://github.com/brookesb91/dismissible
|
||||
const hideBanners = (e) => {
|
||||
|
||||
Reference in New Issue
Block a user