Skip to content

Commit

Permalink
Not supported messages defaults to 'Not Supported' is nothing provied
Browse files Browse the repository at this point in the history
  • Loading branch information
prabeengiri committed Apr 28, 2017
1 parent 8645d00 commit c673273
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Device does not understand `Intent` or Custom URI Scheme `myapp://`.
$(document).ready(function() {
NativeAppLauncher.init({
appLauncherElId: 'open-app-link', // Element Id of App Launcher button.
notSupportedMessage: 'Sorry, you’ll need to use a different browser to do this.',
notSupportedMessage: 'Sorry, you’ll need to use a different browser to do this.', // Defaults to 'Not Supported!'
universalLinkUrl: 'http://mysite.com',
appUri: 'myapp://',
androidAppId: 'com.mycompany.app.enterprise',
Expand Down
7 changes: 3 additions & 4 deletions deeplink-to-native-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,9 @@ var NativeAppLauncher = (function($) {
var id = strategyParameters.getAppLauncherEl().attr('id');
$("body").on('click', '#' + id, function(e) {
e.preventDefault();
if (strategyParameters.getNotSupportedMessage()) {
alert(strategyParameters.getNotSupportedMessage());
}

var message = strategyParameters.getNotSupportedMessage() ?
strategyParameters.getNotSupportedMessage() : 'Not Supported';
alert(message);
})
}
};
Expand Down
2 changes: 1 addition & 1 deletion deeplink-to-native-app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c673273

Please sign in to comment.