瀏覽代碼

fix(capacitor): is capacitor platform flag

charlie 7 月之前
父節點
當前提交
7a2a570dd1
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. 1 0
      resources/capacitor/index.html
  2. 0 1
      src/main/capacitor/core.cljs

+ 1 - 0
resources/capacitor/index.html

@@ -9,6 +9,7 @@
 </head>
 <body>
 <div id="root"></div>
+<script>var isCapacitorNew=true</script>
 <script src="./js/magic_portal.js"></script>
 <script>let worker = new Worker('./js/worker.js')
 const portal = new MagicPortal(worker);

+ 0 - 1
src/main/capacitor/core.cljs

@@ -12,7 +12,6 @@
             [reitit.frontend :as rf]
             [reitit.frontend.easy :as rfe]))
 
-(set! (. js/window -isCapacitorNew) true)
 (defonce ^js root (rdc/createRoot (.getElementById js/document "root")))
 
 (defn ^:export render!