summaryrefslogtreecommitdiffstats
path: root/apps/portal/src/app/index.ts
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-06-02 23:02:22 +0200
committerivarlovlie <git@ivarlovlie.no>2022-06-02 23:02:22 +0200
commit83b11393da8f733c0ffc5abed5d1e0e827d04b61 (patch)
tree0b8f1062cc7435576165c7eb1d8745842acc6c32 /apps/portal/src/app/index.ts
parent53865dad18012512f90d235f4d2833469dcc1685 (diff)
downloadgreatoffice-83b11393da8f733c0ffc5abed5d1e0e827d04b61.tar.xz
greatoffice-83b11393da8f733c0ffc5abed5d1e0e827d04b61.zip
refactor: Rename accounts to portal
Diffstat (limited to 'apps/portal/src/app/index.ts')
-rw-r--r--apps/portal/src/app/index.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/portal/src/app/index.ts b/apps/portal/src/app/index.ts
new file mode 100644
index 0000000..0bfb30d
--- /dev/null
+++ b/apps/portal/src/app/index.ts
@@ -0,0 +1,14 @@
+import App from "./index.svelte";
+import "./index.scss";
+import {is_debug, is_development} from "$shared/lib/configuration";
+import {noop} from "$shared/lib/helpers";
+
+if (!is_development() && !is_debug()) {
+ console.log("%c Production; Suppressing logs", "background-color:yellow;color:black;font-size:18px;");
+ console.log = noop;
+}
+
+// @ts-ignore
+export default new App({
+ target: document.getElementById("root"),
+});