Skip to content

Commit

Permalink
fix(dom-adapter): add fake implementation for getUserAgent (#835)
Browse files Browse the repository at this point in the history
caused by angular/angular#15256
fixes #831
  • Loading branch information
sis0k0 authored Jun 9, 2017
1 parent 9cdc5ae commit 743131c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nativescript-angular/dom-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class NativeScriptDomAdapter implements ɵDomAdapter {
getLocation(): Location { throw new Error("Not implemented!") }
getBaseHref(): string { throw new Error("Not implemented!") }
resetBaseElement(): void { throw new Error("Not implemented!") }
getUserAgent(): string { throw new Error("Not implemented!") }
getUserAgent(): string { return "Fake user agent"; }
setData(_element: any /** TODO #9100 */, _name: string, _value: string): any
/** TODO #9100 */ { throw new Error("Not implemented!") }
getComputedStyle(_element: any /** TODO #9100 */): any { throw new Error("Not implemented!") }
Expand All @@ -179,7 +179,7 @@ export class NativeScriptDomAdapter implements ɵDomAdapter {
getTransitionEnd(): string { throw new Error("Not implemented!") }
supportsAnimation(): boolean { throw new Error("Not implemented!") }

supportsCookies(): boolean { throw new Error("Not implemented!") }
supportsCookies(): boolean { return false; }
getCookie(_name: string): string { throw new Error("Not implemented!") }
setCookie(_name: string, _value: string): any /** TODO #9100 */ { throw new Error("Not implemented!") }
}
Expand Down

0 comments on commit 743131c

Please sign in to comment.