Merge pull request #1006 from Informatic/patch-1
Fix passing connection credentials in URL hash
This commit is contained in:
commit
1d71190cba
|
@ -912,7 +912,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
|
|
||||||
$scope.init = function() {
|
$scope.init = function() {
|
||||||
if (window.location.hash) {
|
if (window.location.hash) {
|
||||||
var rawStr = atob(window.location.hash.substring(1));
|
var rawStr = atob(window.location.hash.substring(3));
|
||||||
window.location.hash = "";
|
window.location.hash = "";
|
||||||
var spl = rawStr.split(":");
|
var spl = rawStr.split(":");
|
||||||
var host = spl[0];
|
var host = spl[0];
|
||||||
|
|
Loading…
Reference in New Issue