From 68db707f7bbca9077143d42aec0f444f0f758303 Mon Sep 17 00:00:00 2001 From: Guille Date: Sun, 17 Jul 2016 20:23:02 +0200 Subject: [PATCH] refactor(webintent): --- src/plugins/webintent.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/plugins/webintent.ts b/src/plugins/webintent.ts index 6c679847..8c642394 100644 --- a/src/plugins/webintent.ts +++ b/src/plugins/webintent.ts @@ -1,5 +1,8 @@ -import {Cordova, CordovaProperty, Plugin} from './plugin'; +import { Cordova, CordovaProperty, Plugin } from './plugin'; + + declare var window; + /** * @name WebIntent * @description @@ -15,31 +18,31 @@ declare var window; export class WebIntent { @CordovaProperty - static get ACTION_VIEW () { + static get ACTION_VIEW() { return window.plugins.webintent.ACTION_VIEW; } @CordovaProperty - static get EXTRA_TEXT () { + static get EXTRA_TEXT() { return window.plugins.webintent.EXTRA_TEXT; } @Cordova() - static startActivity (options: {action: any, url: string}): Promise {return; } + static startActivity(options: { action: any, url: string }): Promise { return; } @Cordova() - static hasExtra (extra: any): Promise {return; } + static hasExtra(extra: any): Promise { return; } @Cordova() - static getExtra (extra: any): Promise {return; } + static getExtra(extra: any): Promise { return; } @Cordova() - static getUri (): Promise {return; }; + static getUri(): Promise { return; }; @Cordova() - static onNewIntent(): Promise {return; }; + static onNewIntent(): Promise { return; }; @Cordova() - static sendBroadcast(options: {action: string, extras?: {option: boolean}}): Promise {return; } + static sendBroadcast(options: { action: string, extras?: { option: boolean } }): Promise { return; } }