Commit c44839eb authored by Michal Kuklis's avatar Michal Kuklis
Browse files

improved module condition - issue #87

parent dc9d4952
Loading
Loading
Loading
Loading
+1 −1
Changes for www/PushNotification.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -63,6 +63,6 @@ if (!window.plugins.pushNotification) {
    window.plugins.pushNotification = new PushNotification();
}

if (module.exports) {
if (typeof module != 'undefined' && module.exports) {
  module.exports = PushNotification;
}
 No newline at end of file