chore(deps): remove node-fetch, migration to node v18 fetch API

This commit is contained in:
JellyBrick
2023-08-29 21:15:22 +09:00
parent 92da06eb96
commit aacc2d261b
10 changed files with 1342 additions and 2178 deletions

View File

@ -1,5 +1,4 @@
const { ipcMain } = require('electron');
const fetch = require('node-fetch');
const registerCallback = require('../../providers/song-info');
@ -24,7 +23,7 @@ const post = async (data) => {
'Access-Control-Allow-Headers': '*',
'Access-Control-Allow-Origin': '*',
};
const url = `http://localhost:${port}/`;
const url = `http://127.0.0.1:${port}/`;
fetch(url, {
method: 'POST',
headers,