Ver código fonte

Warn about unknown properties

Sebastián Katzer 10 anos atrás
pai
commit
2efe9232ee
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      www/local-notification-util.js

+ 1 - 0
www/local-notification-util.js

@@ -103,6 +103,7 @@ exports.mergeWithDefaults = function (options) {
     for (key in options) {
         if (!defaults.hasOwnProperty(key)) {
             delete options[key];
+            console.warn('Unknown property: ' + key);
         }
     }