From 377cf5033452311b267d799c1c92cf210d65b576 Mon Sep 17 00:00:00 2001 From: Onwuka Gideon Date: Tue, 26 Feb 2019 07:16:45 +0100 Subject: [PATCH] Added a missed ',' after the methods property --- source/guide/cordova-plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/guide/cordova-plugins.md b/source/guide/cordova-plugins.md index 0ed12f67..aee35b8b 100644 --- a/source/guide/cordova-plugins.md +++ b/source/guide/cordova-plugins.md @@ -81,7 +81,7 @@ export default { updateBatteryStatus (status) { this.batteryStatus = `Level: ${status.level}, plugged: ${status.isPlugged}` } - } + }, created () { // we register the event like on plugin's doc page window.addEventListener('batterystatus', this.updateBatteryStatus, false)