year преди 3 седмици
родител
ревизия
8e26d09c31
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/utils/index.ts

+ 2 - 1
src/utils/index.ts

@@ -85,8 +85,9 @@ export const goBlankPage = async (handler: Function | string, target = "_self")
         href = isFunHanlder ? await handler() : handler;
     } catch (e) {
         if (newTab) newTab.close();
+        throw new Error(e as string);
     }
-    console.log(href);
+
     if (!href) {
         if (newTab) newTab.close();
         return;