This commit is contained in:
yadpe
2019-10-23 20:21:38 +02:00
parent 8be5b37f4c
commit fd644e5748
2 changed files with 19 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"args": ["."],
"outputCapture": "std"
}
]
}
@@ -1,5 +1,5 @@
import store from '../../../store';
import _ from 'underscore';
import store from '../../../store';
const askBeatconnect = (search, __, resetPage) => {
const controller = new AbortController();
@@ -14,7 +14,7 @@ const askBeatconnect = (search, __, resetPage) => {
fetchingBeatmaps.abort();
store.dispatch({ type: 'FETCHINGBEATMAPS', payload: { isFetching: false } });
}
const formatQuery = query.split(' ').join('%20');
const formatQuery = encodeURIComponent(query);
fetch(
`https://beatconnect.io/api/search/?token=b3z8gl9pzt7iqa89&p=${page || 0}&q=${formatQuery}&s=${status ||
'ranked'}&m=${mode || 'all'}`,