lloydzhou 1 год назад
Родитель
Сommit
a0d4a04192
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      app/locales/en.ts
  2. 1 1
      app/utils.ts

+ 1 - 1
app/locales/en.ts

@@ -207,7 +207,7 @@ const en: LocaleType = {
       IsChecking: "Checking update...",
       FoundUpdate: (x: string) => `Found new version: ${x}`,
       GoToUpdate: "Update",
-      Success: "Update Succesfull.",
+      Success: "Update Successful.",
       Failed: "Update Failed.",
     },
     SendKey: "Send Key",

+ 1 - 1
app/utils.ts

@@ -411,7 +411,7 @@ export function clientUpdate() {
 }
 
 // https://gist.github.com/iwill/a83038623ba4fef6abb9efca87ae9ccb
-export function semverCompare(a, b) {
+export function semverCompare(a: string, b: string) {
   if (a.startsWith(b + "-")) return -1;
   if (b.startsWith(a + "-")) return 1;
   return a.localeCompare(b, undefined, {