Skip to content

Commit 9cff186

Browse files
committed
style: lint
1 parent d035d6b commit 9cff186

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/javascript/quickstart.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
132130
if (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

0 commit comments

Comments
 (0)