MediaWiki:Common.js: Difference between revisions

m Another try to fix
Tag: Reverted
m Fix
Tag: Reverted
Line 51: Line 51:


// WidgetBot: Discord Crate widget
// WidgetBot: Discord Crate widget
$.getScript('https://cdn.jsdelivr.net/npm/@widgetbot/crate@3', function () {
$(document).ready(function() {
    new Crate({
    // Dynamically load the external script
        server: '1163030464903258122', // The 'Good Creations!' Minecraft Server
    $.getScript('https://cdn.jsdelivr.net/npm/@widgetbot/crate@3', function() {
        channel: '1163030468111908986', // #general-💬
        // Once the script is loaded, initialize the Crate widget
        allChannelNotifications: true,
        new Crate({
        color: 'black'
            server: '1163030464903258122', // The 'Good Creations!' Minecraft Server
            channel: '1163030468111908986', // #general-💬
            allChannelNotifications: true,
            color: 'black'
        });
     });
     });
});
});