Fix #66
This commit is contained in:
Vendored
+17
@@ -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'}`,
|
||||
|
||||
Reference in New Issue
Block a user