Skip to content

Commit

Permalink
fix(web): use getPlatform instead of platform
Browse files Browse the repository at this point in the history
  • Loading branch information
pwespi committed Jan 11, 2021
1 parent fb89611 commit dac82e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bleClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class BleClientClass implements BleClientInterface {
value: DataView,
): Promise<void> {
let writeValue: DataView | string = value;
if (Capacitor.platform !== 'web') {
if (Capacitor.getPlatform() !== 'web') {
// on native we can only write strings
writeValue = dataViewToHexString(value);
}
Expand Down

0 comments on commit dac82e4

Please sign in to comment.