Skip to content

Commit

Permalink
Fix taivo#51
Browse files Browse the repository at this point in the history
  • Loading branch information
ulion committed Jun 26, 2018
1 parent d0944db commit 3a951fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/afterAndroidPrepare.js
Expand Up @@ -12,7 +12,8 @@ module.exports = function (context) {
var applicationNode = androidManifest.data.find('application');

// detect Parse notification icon
var parsePushNotificationIcon = configXml.data.find('preference[@name="ParseNotificationIcon"]').get('value');
var parsePushNotificationIcon = configXml.data.find('preference[@name="ParseNotificationIcon"]');
parsePushNotificationIcon = parsePushNotificationIcon && parsePushNotificationIcon.get('value');
if (!!parsePushNotificationIcon) {
// add to AndroidManifest.xml
var manifestPushNotificationIconNode = applicationNode.find('meta-data[@android:name="com.parse.push.notification_icon"]');
Expand Down

0 comments on commit 3a951fb

Please sign in to comment.