I am using widgetbot on my forum, but the icon covers up important information on mobile. Is there a way to hide this only on mobile? The script has been added into the header via admin panel.
I have tried using CSS and the below. Any ideas? I feel like I am missing something so simple.
Original:
<script src='https://cdn.jsdelivr.net/npm/@widgetbot/crate@3' async defer>
new Crate({
server: 'XXXXXXXXXXXXXXXXXXX', // DISCORD
channel: 'XXXXXXXXXXXXXXX' // general
})
button.notify({
content: 'Background updated',
timeout: 1000
})
</script>
My attempt that didn't work:
<script src='https://cdn.jsdelivr.net/npm/@widgetbot/crate@3' async defer>
function includeHTML() {
if (mobilecheck()) {
return;
}
new Crate({
server: 'XXXXXXXXXXXXXXXXXXX', // DISCORD
channel: 'XXXXXXXXXXXXXXX' // general
})
button.notify({
content: 'Background updated',
timeout: 1000
})
</script>