Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
|
@@ -161,4 +161,8 @@ const newGames = [
|
|
| 161 |
});
|
| 162 |
if (typeof lucide !== 'undefined') {
|
| 163 |
lucide.createIcons();
|
| 164 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
});
|
| 162 |
if (typeof lucide !== 'undefined') {
|
| 163 |
lucide.createIcons();
|
| 164 |
+
}
|
| 165 |
+
if (window.location.pathname.endsWith('/index.html')) {
|
| 166 |
+
var cleanUrl = window.location.protocol + "//" + window.location.host + window.location.pathname.replace('/index.html', '');
|
| 167 |
+
window.history.replaceState({}, document.title, cleanUrl);
|
| 168 |
+
}
|