Target link for the plugin url, added comment explaining override $.FSRTC callback

This commit is contained in:
Jaon EarlWolf
2015-10-29 15:15:27 -03:00
parent 43cb965f7e
commit 320cf0adb8
3 changed files with 13 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
.module('vertoControllers')
.controller('InCallController', ['$rootScope', '$scope',
'$http', '$location', '$modal', '$timeout', 'toastr', 'verto', 'storage', 'prompt', 'Fullscreen',
function($rootScope, $scope, $http, $location, $modal, $timeout, toatr,
function($rootScope, $scope, $http, $location, $modal, $timeout, toastr,
verto, storage, prompt, Fullscreen) {
console.debug('Executing InCallController.');
@@ -87,16 +87,17 @@
$scope.muteMic = verto.muteMic;
$scope.muteVideo = verto.muteVideo;
$scope.$on('ScreenShareExtensionStatus', function(error) {
$rootScope.$on('ScreenShareExtensionStatus', function(event, error) {
var pluginUrl = 'https://chrome.google.com/webstore/detail/screen-capturing/ajhifddimkapgcifgcodmmfdlknahffk';
switch(error) {
case 'permission-denied':
toastr.info('Please allow the plugin in order to use Screen Share', 'Error'); break;
case 'not-installed':
toastr.warning('Please install the plugin in order to use Screen Share', 'Warning'); break;
toastr.warning('Please <a target="_blank" class="install" href="'+ pluginUrl +'">install</a> the plugin in order to use Screen Share', 'Warning', { allowHtml: true }); break;
case 'installed-disabled':
toastr.info('Please enable the plugin in order to use Screen Share', 'Error'); break;
// case 'not-chrome'
// toastr.info('Please allow the plugin in order to use Screen Share', 'Error');
// toastr.info('Chrome', 'Error');
}
});