StringFellow commited on
Commit
2051c69
·
verified ·
1 Parent(s): a7a1952

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +5 -0
app.js CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  const ENCODED_URL = "aHR0cHM6Ly9zY3JpcHQuZ29vZ2xlLmNvbS9tYWNyb3Mvcy9BS2Z5Y2J6bnUxanR5elVfYzRla1ItQ3B2YXBvU2FRY0hzQzZkbWo1eHJYWnBRRjVBaWJsX29NaklUSng3dm5va2lOWThzZHhaZy9leGVj";
2
  const GAS_WEB_APP_URL = atob(ENCODED_URL);
3
 
 
1
+ if (window.location.pathname.endsWith('/index.html')) {
2
+ const cleanUrl = window.location.pathname.replace('/index.html', '/') + window.location.search + window.location.hash;
3
+ window.history.replaceState(null, '', cleanUrl);
4
+ }
5
+
6
  const ENCODED_URL = "aHR0cHM6Ly9zY3JpcHQuZ29vZ2xlLmNvbS9tYWNyb3Mvcy9BS2Z5Y2J6bnUxanR5elVfYzRla1ItQ3B2YXBvU2FRY0hzQzZkbWo1eHJYWnBRRjVBaWJsX29NaklUSng3dm5va2lOWThzZHhaZy9leGVj";
7
  const GAS_WEB_APP_URL = atob(ENCODED_URL);
8