UNPKG

494 BJavaScriptView Raw
1import { checkAvailability, getPlugin } from './common';
2export function cordovaPropertyGet(pluginObj, key) {
3 if (checkAvailability(pluginObj, key) === true) {
4 return getPlugin(pluginObj.constructor.getPluginRef())[key];
5 }
6 return null;
7}
8export function cordovaPropertySet(pluginObj, key, value) {
9 if (checkAvailability(pluginObj, key) === true) {
10 getPlugin(pluginObj.constructor.getPluginRef())[key] = value;
11 }
12}
13//# sourceMappingURL=cordova-property.js.map
\No newline at end of file