VersoSolutions / CordovaClipboard

Clipboard management plugin for Cordova/PhoneGap
MIT License
144 stars 257 forks source link

About "undefined" error using clipboard #18

Open floraluo opened 9 years ago

floraluo commented 9 years ago

I am using this plugin in my app. And when I test it in browser,I always get this undefined error about cannot read some properties.However,when I test it on my emulator,and the clipboard's copy and paste function work fine.

AllSeeingEye commented 9 years ago

You'll always get the issue in the browser, because in the browser environment you don't have the exported clipboard/cordova objects. They are only exported under cordova environment.

floraluo commented 9 years ago

@AllSeeingEye Oh! I get it. Thank you for your reply ^_^