diff --git a/lib/services/hash.service.ts b/lib/services/hash.service.ts index fda833e7..4cdb5964 100644 --- a/lib/services/hash.service.ts +++ b/lib/services/hash.service.ts @@ -30,7 +30,7 @@ export class Hash { update(hash: string|null, rewriteHistory:boolean = false) { if (hash == undefined) return; if (rewriteHistory) { - window.history.replaceState(null, '', window.location.href.split("#")[0] + '#' + hash); + window.history.replaceState(null, '', window.location.href.split('#')[0] + '#' + hash); return; } this.noEmit = true; diff --git a/tsconfig.json b/tsconfig.json index fbb918e7..8ce88692 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,7 @@ ], "outDir": "dist", "lib": [ - "DOM", "ES2016", "DOM.Iterable" + "dom", "es2016", "dom.iterable" ], "noEmitHelpers": false },