Skip to content

Commit d325e4b

Browse files
montymxbflovilmart
authored andcommitted
Fixes missing supportedPushLocales in #811 (#812)
* Fixes missing supportedPushLocales in #811 * Added console warning if push localization is missing, with information on how to correct it.
1 parent 8b39435 commit d325e4b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/ParseApp.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ export default class ParseApp {
6060
this.serverURL = serverURL;
6161
this.serverInfo = serverInfo;
6262
this.icon = iconName;
63-
this.supportedPushLocales = supportedPushLocales;
63+
this.supportedPushLocales = supportedPushLocales ? supportedPushLocales : [];
64+
65+
if(!supportedPushLocales) {
66+
console.warn(`Missing push locales for '` + appName + `', see this link for details on setting localizations up. https://github.com/parse-community/parse-dashboard#configuring-localized-push-notifications`);
67+
}
6468

6569
this.settings = {
6670
fields: {},

0 commit comments

Comments
 (0)