Don't show TLS warning in cordova

This commit is contained in:
Lorenz Hübschle-Schneider 2016-12-03 12:14:47 +01:00
parent 8cb26cbbc8
commit 9865bdd032
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
// except for local instances (testing or electron) // except for local instances (testing or electron)
$scope.show_tls_warning = (window.location.protocol !== "https:") && $scope.show_tls_warning = (window.location.protocol !== "https:") &&
(["localhost", "127.0.0.1", "::1"].indexOf(window.location.hostname) === -1) && (["localhost", "127.0.0.1", "::1"].indexOf(window.location.hostname) === -1) &&
!window.is_electron; !window.is_electron && (cordova === null);
if (window.is_electron) { if (window.is_electron) {
// Use packaged emojione sprite in the electron app // Use packaged emojione sprite in the electron app