Skip to content
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

feat(user-agent): add User-Agent plugin #1582

Merged
merged 2 commits into from
May 19, 2017
Merged

feat(user-agent): add User-Agent plugin #1582

merged 2 commits into from
May 19, 2017

Conversation

helderdiniz
Copy link
Contributor

A plugin that might be interesting for the framework, the cordova-useragent. It's based on https://github.com/LouisT/cordova-useragent

import {Plugin, Cordova, IonicNativePlugin} from '@ionic-native/core';

/**
* @name User-Agent
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be User Agent without the dash in between. Was this automatically generated by the gulp plugin:create command?

@@ -0,0 +1,73 @@
import {Injectable} from '@angular/core';
import {Plugin, Cordova, IonicNativePlugin} from '@ionic-native/core';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add spaces between the import names and the brackets. A space after { and a space before }.

@helderdiniz
Copy link
Contributor Author

Why did the build fail if all I did was add whitespaces? It's building correctly on my side.

@ihadeed ihadeed merged commit 6f6392e into danielsogl:master May 19, 2017
@ihadeed
Copy link
Collaborator

ihadeed commented May 19, 2017

@helderdiniz there wasn't an issue with your code, it was just mistake with the latest CI tests script I published. Everything is fine. Thanks for the PR :)

@helderdiniz
Copy link
Contributor Author

Glad to know then! Hope to see this soon, cheers and thanks for the good work on the framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants