Skip to content

Commit

Permalink
test: #1231; splash google-bot check (cont);
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed May 2, 2023
1 parent 24a5af5 commit c28c6fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
[GOOGLEBOT] mobile usability override/hack
-->
<style>
body.googlebot-override * {
all: unset;
}
html {
overflow-x: hidden !important;
}
Expand All @@ -41,11 +44,9 @@
body.googlebot-override img,
body.googlebot-override td { */
body.googlebot-override * {
all: initial;
margin: 10px;
display: grid;
grid-template-columns: 1fr !important;
gap: 10px;
margin: 5px;
overflow-x: hidden !important;
}
body.googlebot-override div#splash-screen {
margin: 0;
Expand Down
12 changes: 6 additions & 6 deletions src/lib/components/_Splash_screen.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
*/
onMount(async () => {
setTimeout(async () => {
// document.documentElement.classList.remove(
// 'googlebot-override'
// );
// document.body.classList.remove(
// 'googlebot-override'
// );
document.documentElement.classList.remove(
'googlebot-override'
);
document.body.classList.remove(
'googlebot-override'
);
document.documentElement.classList.remove(
'no-scrollbar'
);
Expand Down

0 comments on commit c28c6fb

Please sign in to comment.