Plugin reference fix

The plugin reference is available as part of the global `cordova` object and not the global `plugins` object. This caused the plugin to `Plugin not installed warning` even though the plugin is installed and works when using through `cordova.plugins.market.open(appId);`
This commit is contained in:
Nakul Gulati 2016-11-18 17:08:42 +05:30 committed by GitHub
parent dd2ccef0c7
commit 8988fad713

View File

@ -15,7 +15,7 @@ import { Plugin, Cordova } from './plugin';
@Plugin({ @Plugin({
pluginName: 'Market', pluginName: 'Market',
plugin: 'cordova-plugin-market', plugin: 'cordova-plugin-market',
pluginRef: 'plugins.market', pluginRef: 'cordova.plugins.market',
repo: 'https://github.com/xmartlabs/cordova-plugin-market' repo: 'https://github.com/xmartlabs/cordova-plugin-market'
}) })
export class Market { export class Market {