File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -124,17 +124,15 @@ Replace the contents of `src/main.js` with the following:
124124
125125``` js
126126// Determine if the app is running in Capacitor
127- const isCapacitor =
128- location .protocol === ' capacitor:' ||
129- (window .Capacitor && window .Capacitor .platform !== ' web' );
127+ const isCapacitor = location .protocol === ' capacitor:' || (window .Capacitor && window .Capacitor .platform !== ' web' );
130128
131129// Load Ionic
132130if (isCapacitor) {
133131 // In Capacitor, import Ionic directly from copied dist files
134132 import (/* @vite-ignore */ location .origin + ' /ionic.esm.js' );
135133} else {
136134 // In the browser, use the normal loader
137- import (' @ionic/core/loader' ).then (m => m .defineCustomElements (window ));
135+ import (' @ionic/core/loader' ).then (( m ) => m .defineCustomElements (window ));
138136}
139137
140138// Core CSS required for Ionic components to work properly
You can’t perform that action at this time.
0 commit comments