diff options
-rw-r--r-- | hesla.es | 11 | ||||
-rw-r--r-- | sworker.js | 2 |
2 files changed, 6 insertions, 7 deletions
@@ -1,15 +1,14 @@ import {ActivePage} from "activePage"; if (!Date.prototype.toISODateString) { - (function() { + Date.prototype.toISODateString = function() { function pad(n) { return n < 10 ? '0' + n : n; } - Date.prototype.toISODateString = function() { - return this.getFullYear() + '-' + pad(this.getMonth() + 1) + - '-' + pad(this.getDate()); - }; - }()); + + return this.getFullYear() + '-' + pad(this.getMonth() + 1) + + '-' + pad(this.getDate()); + }; } export class Hesla extends ActivePage { @@ -1,4 +1,4 @@ -var version = 'v38 - 2017-12-31'; +var version = 'v39 - 2017-01-07'; var toCache = [ '/', 'index.html', |