Skip to content

Commit

Permalink
AJS 0.15.2 ; minor udpate, only a correction of the update popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacques-Olivier Haché committed May 28, 2018
1 parent 9e57d6c commit 6e33b11
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 27 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "adapterjs",
"description": "Creating a common API for WebRTC in the browser",
"version": "0.15.1",
"version": "0.15.2",
"homepage": "https://temasys.github.io/",
"author": {
"name": "Temasys Communications Pte. Ltd.",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "adapterjs",
"description": "Creating a common API for WebRTC in the browser",
"version": "0.15.1",
"version": "0.15.2",
"homepage": "https://temasys.github.io/",
"author": {
"name": "Temasys Communications Pte. Ltd.",
Expand Down
23 changes: 14 additions & 9 deletions publish/adapter.debug.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! adapterjs - v0.15.1 - 2018-03-07 */
/*! adapterjs - v0.15.2 - 2018-05-28 */

'use strict'

Expand All @@ -20,7 +20,7 @@ AdapterJS.options.hidePluginInstallPrompt = !!AdapterJS.options.hidePluginInstal
AdapterJS.options.forceSafariPlugin = !!AdapterJS.options.forceSafariPlugin;

// AdapterJS version
AdapterJS.VERSION = '0.15.1';
AdapterJS.VERSION = '0.15.2';

// This function will be called when the WebRTC API is ready to be used
// Whether it is the native implementation (Chrome, Firefox, Opera) or
Expand Down Expand Up @@ -5716,14 +5716,19 @@ module.exports = {
var downloadLink = AdapterJS.WebRTCPlugin.pluginInfo.downloadLink;
if(downloadLink) { // if download link
var popupString;
if (AdapterJS.WebRTCPlugin.pluginInfo.portalLink) { // is portal link
popupString = 'This website requires you to install the ' +
' <a href="' + AdapterJS.WebRTCPlugin.pluginInfo.portalLink +
'" target="_blank">' + AdapterJS.WebRTCPlugin.pluginInfo.companyName +
' WebRTC Plugin</a>' +
' to work on this browser.';
if (AdapterJS.WebRTCPlugin.pluginInfo.companyName) {
// Show the company name and if possible a link to their portal
popupString = 'This website requires you to install the ';
if (AdapterJS.WebRTCPlugin.pluginInfo.portalLink) {
popupString += ' <a href="' + AdapterJS.WebRTCPlugin.pluginInfo.portalLink +
'" target="_blank">' + AdapterJS.WebRTCPlugin.pluginInfo.companyName +
' WebRTC Plugin</a>';
} else {
popupString += AdapterJS.WebRTCPlugin.pluginInfo.companyName + ' WebRTC Plugin';
}
popupString += ' to work on this browser.';
} else { // no portal link, just print a generic explanation
popupString = AdapterJS.TEXT.PLUGIN.REQUIRE_INSTALLATION;
popupString = AdapterJS.TEXT.PLUGIN.REQUIRE_INSTALLATION;
}

AdapterJS.renderNotificationBar(popupString, AdapterJS.TEXT.PLUGIN.BUTTON, function () {
Expand Down
6 changes: 3 additions & 3 deletions publish/adapter.min.js

Large diffs are not rendered by default.

23 changes: 14 additions & 9 deletions publish/adapter.screenshare.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! adapterjs - v0.15.1 - 2018-03-07 */
/*! adapterjs - v0.15.2 - 2018-05-28 */

'use strict'

Expand All @@ -20,7 +20,7 @@ AdapterJS.options.hidePluginInstallPrompt = !!AdapterJS.options.hidePluginInstal
AdapterJS.options.forceSafariPlugin = !!AdapterJS.options.forceSafariPlugin;

// AdapterJS version
AdapterJS.VERSION = '0.15.1';
AdapterJS.VERSION = '0.15.2';

// This function will be called when the WebRTC API is ready to be used
// Whether it is the native implementation (Chrome, Firefox, Opera) or
Expand Down Expand Up @@ -5716,14 +5716,19 @@ module.exports = {
var downloadLink = AdapterJS.WebRTCPlugin.pluginInfo.downloadLink;
if(downloadLink) { // if download link
var popupString;
if (AdapterJS.WebRTCPlugin.pluginInfo.portalLink) { // is portal link
popupString = 'This website requires you to install the ' +
' <a href="' + AdapterJS.WebRTCPlugin.pluginInfo.portalLink +
'" target="_blank">' + AdapterJS.WebRTCPlugin.pluginInfo.companyName +
' WebRTC Plugin</a>' +
' to work on this browser.';
if (AdapterJS.WebRTCPlugin.pluginInfo.companyName) {
// Show the company name and if possible a link to their portal
popupString = 'This website requires you to install the ';
if (AdapterJS.WebRTCPlugin.pluginInfo.portalLink) {
popupString += ' <a href="' + AdapterJS.WebRTCPlugin.pluginInfo.portalLink +
'" target="_blank">' + AdapterJS.WebRTCPlugin.pluginInfo.companyName +
' WebRTC Plugin</a>';
} else {
popupString += AdapterJS.WebRTCPlugin.pluginInfo.companyName + ' WebRTC Plugin';
}
popupString += ' to work on this browser.';
} else { // no portal link, just print a generic explanation
popupString = AdapterJS.TEXT.PLUGIN.REQUIRE_INSTALLATION;
popupString = AdapterJS.TEXT.PLUGIN.REQUIRE_INSTALLATION;
}

AdapterJS.renderNotificationBar(popupString, AdapterJS.TEXT.PLUGIN.BUTTON, function () {
Expand Down
8 changes: 4 additions & 4 deletions publish/adapter.screenshare.min.js

Large diffs are not rendered by default.

0 comments on commit 6e33b11

Please sign in to comment.