Skip to content

Commit c4e9f8e

Browse files
committed
Type checker bug fix
1 parent c506777 commit c4e9f8e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Analizer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ export default function () {
22
const Analizer = {};
33

44
Analizer.checkType = function(targetName, code) {
5-
let type;
5+
let type = null;
66

7-
if (typeof type != "string") return type;
7+
if (typeof code != "string") return type;
88

99
switch (true) {
1010
case !!code.match(new RegExp(`${targetName}\\[[0-9]+\\]`)):

src/components/Main.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ export default {
8080
this.$refs.alert.hide();
8181
8282
const type = this.analizer.checkType(this.targetName, this.mainCode);
83-
if (!type)
83+
if (type === null) {
8484
return this.$refs.alert.showAlert(
8585
"danger",
8686
"[Error]",
8787
"Invalid obfuscation type! Please report to us or try again."
88-
);
88+
),
89+
this.running = false;
90+
}
8991
9092
this.changeProgress(100);
9193

0 commit comments

Comments
 (0)