From 3c910c877add9102bbe1fa94090ec27743d46f33 Mon Sep 17 00:00:00 2001 From: defclass Date: Tue, 10 Nov 2020 09:57:42 +0800 Subject: [PATCH] style: fix the display style and code style --- src/main/frontend/core.cljs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/frontend/core.cljs b/src/main/frontend/core.cljs index f9bb9c4d2..bebd05952 100644 --- a/src/main/frontend/core.cljs +++ b/src/main/frontend/core.cljs @@ -15,10 +15,13 @@ ;; set to false to enable HistoryAPI {:use-fragment false})) -(defn welcome-message +(defn display-welcome-message [] (js/console.log - "Welcome to Logseq! If you encounter any problem, feel free to file an issue on GitHub (https://github.com/logseq/logseq) or join our Discord server (https://discord.gg/KpN4eHY). + " + Welcome to Logseq! + If you encounter any problem, feel free to file an issue on GitHub (https://github.com/logseq/logseq) + or join our Discord server (https://discord.gg/KpN4eHY). .____ | | ____ ____ ______ ____ ______ | | / _ \\ / ___\\/ ___// __ \\/ ____/ @@ -27,14 +30,11 @@ \\/ /_____/ \\/ \\/ |__| " )) - - - - (defn start [] +(defn start [] (when-let [node (.getElementById js/document "root")] (set-router!) (rum/mount (page/current-page) node) - (welcome-message))) + (display-welcome-message))) (defn ^:export init [] ;; init is called ONCE when the page loads