mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-24 20:33:44 +08:00
remove query string, getUrl() fix
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
// remove query string
|
||||
window.history.replaceState(
|
||||
{},
|
||||
'',
|
||||
window.location.href.replace(window.location.search, '')
|
||||
);
|
||||
})();
|
||||
|
||||
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular
|
||||
.module('NginxConfigIoApp', ['ngSanitize', 'ngclipboard', '720kb.tooltips'])
|
||||
.config([
|
||||
@@ -625,7 +636,7 @@
|
||||
};
|
||||
|
||||
$scope.getUrl = function() {
|
||||
return $location.absUrl().replace(/#.*$/, '');
|
||||
return $location.absUrl();
|
||||
};
|
||||
|
||||
$scope.addSite = function() {
|
||||
|
Reference in New Issue
Block a user