Skip to content

Commit

Permalink
upd: #1278; revert hack; (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash authored Jul 26, 2023
1 parent 776c7e6 commit 65de310
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 29 deletions.
4 changes: 2 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
IMPORTANT
[GOOGLEBOT] mobile usability override/hack
-->
<!-- <style>
<style>
body.googlebot-override * {
all: unset;
}
Expand Down Expand Up @@ -67,7 +67,7 @@
body.googlebot-override section#home-page {
grid-template-columns: 1fr !important;
}
</style> -->
</style>

<!--
ICONS & FAVICONS
Expand Down
45 changes: 18 additions & 27 deletions src/lib/components/Splash-Screen.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,25 @@
* @description triggers events onLoad of the
* page/component;
*/
onMount
(
async () =>
{
setTimeout
(
async () =>
{
// document.documentElement.classList.remove(
// 'googlebot-override'
// );
// document.body.classList.remove(
// 'googlebot-override'
// );
document.documentElement.classList.remove(
'no-scrollbar'
);
document.body.classList.remove(
'no-scrollbar'
);
show = false;
},
500
onMount(async () => {
setTimeout(async () => {
document.documentElement.classList.remove(
'googlebot-override'
);
}
);
document.body.classList.remove(
'googlebot-override'
);
document.documentElement.classList.remove(
'no-scrollbar'
);
document.body.classList.remove(
'no-scrollbar'
);
}, 500);
setTimeout(async () => {
show = false;
}, 850);
});
</script>

Expand Down

0 comments on commit 65de310

Please sign in to comment.