forked from Archives/Athou_commafeed
make chrome think every bookmark click is a different url in order to create history entries (fix #488)
This commit is contained in:
@@ -1406,6 +1406,7 @@ module.controller('HelpController', ['$scope', 'CategoryService', 'AnalyticsServ
|
||||
$scope.infos = ServerService.get();
|
||||
$scope.categoryId = 'all';
|
||||
$scope.order = 'desc';
|
||||
$scope.baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf('#'));
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
var app = angular.module('commafeed', ['ui', 'ui.bootstrap', 'ui.state', 'commafeed.directives', 'commafeed.controllers',
|
||||
'commafeed.services', 'commafeed.filters', 'ngSanitize', 'infinite-scroll', 'ngGrid']);
|
||||
|
||||
app.config(['$routeProvider', '$stateProvider', '$urlRouterProvider', '$httpProvider',
|
||||
function($routeProvider, $stateProvider, $urlRouterProvider, $httpProvider) {
|
||||
app.config(['$routeProvider', '$stateProvider', '$urlRouterProvider', '$httpProvider', '$compileProvider',
|
||||
function($routeProvider, $stateProvider, $urlRouterProvider, $httpProvider, $compileProvider) {
|
||||
|
||||
$compileProvider.urlSanitizationWhitelist(/^\s*(https?|ftp|mailto|javascript):/);
|
||||
var interceptor = ['$rootScope', '$q', function(scope, $q) {
|
||||
|
||||
var success = function(response) {
|
||||
|
||||
Reference in New Issue
Block a user