Spaces:
Running
Running
Update app.js
Browse files
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 |
|