Skip to content

fix(dom-adapter): add fake implementation for getUserAgent #835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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