|
|
@ -104,8 +104,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
// Show a TLS warning if GB was loaded over an unencrypted connection,
|
|
|
|
// Show a TLS warning if GB was loaded over an unencrypted connection,
|
|
|
|
// except for local instances (testing, cordova, or electron)
|
|
|
|
// except for local instances (local files, testing, cordova, or electron)
|
|
|
|
$scope.show_tls_warning = (window.location.protocol !== "https:") && |
|
|
|
$scope.show_tls_warning = (["https:", "file:"].indexOf(window.location.protocol) === -1) && |
|
|
|
(["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 && !utils.isCordova(); |
|
|
|
!window.is_electron && !utils.isCordova(); |
|
|
|
|
|
|
|
|
|
|
|