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;