append framework capacitorjs code example Example: ionic capacitor platform web if (Capacitor.platform !== 'web') { // TODO }