Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
console.log a message if there is an incorrect combination of attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed Jun 30, 2015
1 parent 05212a4 commit a862dc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platinum-sw-fetch.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@
};
if (this.path && this.handler) {
params.route = [this.path, this.handler, this.origin];
} else {
console.log('The following platinum-sw-fetch element will not have any effect. ' +
'Both the "path" and "handler" attributes must be set.', this);
}
resolve(params);
}.bind(this));
Expand Down
3 changes: 3 additions & 0 deletions platinum-sw-import-script.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
var params = {};
if (this.href) {
params.importscript = this.href;
} else {
console.log('The following platinum-sw-import-script element will not have any effect. ' +
'The "href" attribute must be set.', this);
}
resolve(params);
}.bind(this));
Expand Down

0 comments on commit a862dc5

Please sign in to comment.