remove query string, getUrl() fix
parent
041efa8f86
commit
4e72e291c1
|
@ -37,6 +37,7 @@
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
|
"window": true,
|
||||||
"angular": true,
|
"angular": true,
|
||||||
"gtag": true,
|
"gtag": true,
|
||||||
"dataLayer": true,
|
"dataLayer": true,
|
||||||
|
|
|
@ -1,8 +1,19 @@
|
||||||
(function() {
|
(function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
// remove query string
|
||||||
|
window.history.replaceState(
|
||||||
|
{},
|
||||||
|
'',
|
||||||
|
window.location.href.replace(window.location.search, '')
|
||||||
|
);
|
||||||
|
})();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
angular
|
angular
|
||||||
.module('NginxConfigIoApp', ['ngSanitize', 'ngclipboard', '720kb.tooltips'])
|
.module('NginxConfigIoApp', ['ngSanitize', 'ngclipboard', '720kb.tooltips'])
|
||||||
.config([
|
.config([
|
||||||
|
@ -625,7 +636,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.getUrl = function() {
|
$scope.getUrl = function() {
|
||||||
return $location.absUrl().replace(/#.*$/, '');
|
return $location.absUrl();
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.addSite = function() {
|
$scope.addSite = function() {
|
||||||
|
|
Loading…
Reference in New Issue