mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 01:23:49 +01:00
Clean invocation of get/delete
This commit is contained in:
parent
5386f8e027
commit
861fcf70c4
@ -52,7 +52,7 @@ async function initialize(win) {
|
|||||||
switch(req.method) {
|
switch(req.method) {
|
||||||
// Request files
|
// Request files
|
||||||
case "GET":
|
case "GET":
|
||||||
result = await window.webContents.executeJavaScript(`document.getFiles("${data.filename}", "${data.code}")`);
|
result = await window.webContents.executeJavaScript(`document.getFiles()`);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Create or update files
|
// Create or update files
|
||||||
@ -74,7 +74,7 @@ async function initialize(win) {
|
|||||||
|
|
||||||
// Delete files
|
// Delete files
|
||||||
case "DELETE":
|
case "DELETE":
|
||||||
result = await window.webContents.executeJavaScript(`document.deleteFiles("${data.filename}", "${data.code}")`);
|
result = await window.webContents.executeJavaScript(`document.deleteFiles("${data.filename}")`);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user