Skip to content
This repository has been archived by the owner on Nov 24, 2024. It is now read-only.

Commit

Permalink
fix(input-handler): fix version failed to compare when they are the same
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenlx committed Sep 4, 2021
1 parent 17d8149 commit a2f9a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/receivers/input-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default class InputListener extends Events {
const result = typeof src === "string" ? JsonToObj(src) : UrlToObj(src);
if (!result) return null;
const verCompare = checkVersion(result[0], OBBRIDGE_MIN_VERSION);
if (!verCompare) {
if (verCompare === null) {
new Notice(`Unable to compare version: ${result[0]}`);
console.error("Unable to compare version in %o", result);
return null;
Expand Down

0 comments on commit a2f9a5b

Please sign in to comment.