Skip to content

Commit

Permalink
docs(): fix repo link
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed May 17, 2017
2 parents 84551ca + 5145395 commit 7d63e80
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/docs/templates/common.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ <h1 class="api-title"><$ doc.name $>
<@ endif @>

<# --- Install commands --- #>
<pre><code class="nohighlight">$ <@ if prop.install @><$ prop.install $><@ else @>ionic plugin add --save <$ prop.plugin $><@ endif @>
<pre><code class="nohighlight">$ <@ if prop.install @><$ prop.install $><@ else @>ionic cordova plugin add <$ prop.plugin $><@ endif @>
$ npm install --save @ionic-native/<$ doc.npmId $>
</code></pre>
<p>Repo:
Expand Down
2 changes: 1 addition & 1 deletion src/@ionic-native/plugins/printer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface PrintOptions {
pluginName: 'Printer',
plugin: 'de.appplant.cordova.plugin.printer',
pluginRef: 'cordova.plugins.printer',
repo: 'https://github.com/katzer/cordova-plugin-printer.git',
repo: 'https://github.com/katzer/cordova-plugin-printer',
platforms: ['Android', 'iOS']
})
@Injectable()
Expand Down
11 changes: 10 additions & 1 deletion src/@ionic-native/plugins/secure-storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CordovaInstance, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic
*/
export class SecureStorageObject {

constructor(private _objectInstance?: any) { }
constructor(private _objectInstance: any) { }

/**
* Gets a stored item
Expand Down Expand Up @@ -120,8 +120,17 @@ export class SecureStorage extends IonicNativePlugin {
*/
@CordovaCheck()
create(store: string): Promise<SecureStorageObject> {
<<<<<<< HEAD
return new Promise((res: Function, rej: Function) => {
const instance = new (SecureStorage.getPlugin())(() => res(new SecureStorageObject(instance)), rej, store);
=======
return new Promise((res, rej) => {
if (checkAvailability('cordova.plugins.SecureStorage', null, 'SecureStorage') === true) {
const instance = new cordova.plugins.SecureStorage(() => res(new SecureStorageObject(instance)), rej, store);
} else {
rej('SecureStorage failure: cordova plugin is not available');
}
>>>>>>> 5145395dd7bea7d2fb81b11b356a4a7497c607e7
});
}

Expand Down

0 comments on commit 7d63e80

Please sign in to comment.