Skip to content

Commit e81d545

Browse files
committed
Switch api url (public server / local)
1 parent 8858a5e commit e81d545

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Main.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,13 @@ export default {
103103
104104
this.changeProgress(100);
105105
106+
const requestURL = window.location.origin.includes("localhost") ?
107+
"http://localhost:5001/deobfuscator/us-central1/api/request" :
108+
"https://us-central1-deobfuscator.cloudfunctions.net/api/request";
109+
106110
this.axios
107111
.post(
108-
"https://us-central1-deobfuscator.cloudfunctions.net/api/request",
112+
requestURL,
109113
{
110114
targetName: this.targetName,
111115
code: this.mainCode,

0 commit comments

Comments
 (0)