how to app capacitor platform code example
Example 1: ionic capacitor platform web
if (Capacitor.platform !== 'web') {
// TODO
}
Example 2: install capacitor ionic
npx cap init
if (Capacitor.platform !== 'web') {
// TODO
}
npx cap init