Preserve pathname in location

use-minification
Jeremy Mahieu 6 years ago committed by Lorenz Hübschle-Schneider
parent 3bffb13930
commit 844810408d
  1. 4
      js/glowingbear.js

@ -8,7 +8,7 @@ document.addEventListener("deviceready", function () {
}
}, false);
var weechat = angular.module('weechat', ['ngRoute', 'localStorage', 'weechatModels', 'bufferResume', 'plugins', 'IrcUtils', 'ngSanitize', 'ngWebsockets', 'ngTouch'], ['$compileProvider', '$locationProvider', function($compileProvider, $locationProvider) {
var weechat = angular.module('weechat', ['ngRoute', 'localStorage', 'weechatModels', 'bufferResume', 'plugins', 'IrcUtils', 'ngSanitize', 'ngWebsockets', 'ngTouch'], ['$compileProvider', function($compileProvider) {
// hacky way to be able to find out if we're in debug mode
weechat.compileProvider = $compileProvider;
}]);
@ -23,6 +23,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
function ($rootScope, $scope, $store, $timeout, $location, $log, models, bufferResume, connection, notifications, utils, settings)
{
$location.path(window.location.pathname);
window.openBuffer = function(channel) {
$scope.openBuffer(channel);
$scope.$apply();

Loading…
Cancel
Save