mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 07:33:48 +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) {
|
||||
// Request files
|
||||
case "GET":
|
||||
result = await window.webContents.executeJavaScript(`document.getFiles("${data.filename}", "${data.code}")`);
|
||||
result = await window.webContents.executeJavaScript(`document.getFiles()`);
|
||||
break;
|
||||
|
||||
// Create or update files
|
||||
@ -74,7 +74,7 @@ async function initialize(win) {
|
||||
|
||||
// Delete files
|
||||
case "DELETE":
|
||||
result = await window.webContents.executeJavaScript(`document.deleteFiles("${data.filename}", "${data.code}")`);
|
||||
result = await window.webContents.executeJavaScript(`document.deleteFiles("${data.filename}")`);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user