year 3 viikkoa sitten
vanhempi
commit
8e26d09c31
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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;