j3k0 / cordova-plugin-purchase

In-App Purchase for Cordova on iOS, Android and Windows
https://purchase.cordova.fovea.cc
1.29k stars 529 forks source link

applicationUsername function should accept undefined as return value #1465

Closed dominic-simplan closed 7 months ago

dominic-simplan commented 8 months ago

I think the function to return the applicationUsername should also be able to return undefined (i.e. the default behavior should be applied), as it is also possible to set undefined directly.

Changes proposed in this pull request:

-


To test this pull request with cordova:

# 1: Uninstall the plugin (if already installed)
cordova plugin rm cordova-plugin-purchase

# 2: Install from github
cordova plugin add "https://github.com/j3k0/cordova-plugin-purchase.git#BRANCH_NAME_HERE"
j3k0 commented 7 months ago

Agree