Browse Source

Remove # symbol when no hash

master
yflory 11 months ago
parent
commit
2c1e26cb52
5 changed files with 5 additions and 5 deletions
  1. 2
      www/common/onlyoffice/main.js
  2. 2
      www/common/sframe-app-outer.js
  3. 2
      www/drive/main.js
  4. 2
      www/poll/main.js
  5. 2
      www/teams/main.js

2
www/common/onlyoffice/main.js

@ -24,7 +24,7 @@ define([
// Hidden hash
hash = window.location.hash;
href = window.location.href;
if (window.history && window.history.replaceState) {
if (window.history && window.history.replaceState && hash) {
window.history.replaceState({}, window.document.title, '#');
}
document.getElementById('sbox-iframe').setAttribute('src',

2
www/common/sframe-app-outer.js

@ -23,7 +23,7 @@ define([
// Hidden hash
hash = window.location.hash;
href = window.location.href;
if (window.history && window.history.replaceState) {
if (window.history && window.history.replaceState && hash) {
window.history.replaceState({}, window.document.title, '#');
}

2
www/drive/main.js

@ -24,7 +24,7 @@ define([
// Hidden hash
hash = window.location.hash;
href = window.location.href;
if (window.history && window.history.replaceState) {
if (window.history && window.history.replaceState && hash) {
window.history.replaceState({}, window.document.title, '#');
}

2
www/poll/main.js

@ -24,7 +24,7 @@ define([
// Hidden hash
hash = window.location.hash;
href = window.location.href;
if (window.history && window.history.replaceState) {
if (window.history && window.history.replaceState && hash) {
window.history.replaceState({}, window.document.title, '#');
}

2
www/teams/main.js

@ -24,7 +24,7 @@ define([
// Hidden hash
hash = window.location.hash;
href = window.location.href;
if (window.history && window.history.replaceState) {
if (window.history && window.history.replaceState && hash) {
window.history.replaceState({}, window.document.title, '#');
}

Loading…
Cancel
Save