Skip to content

Commit

Permalink
Styling/Formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bioblaze committed Jan 22, 2025
1 parent 4322a44 commit 9b13e6b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions platform/web/js/engine/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,15 @@ const Engine = (function () {
installServiceWorker: function () {
if (this.config.serviceWorker && 'serviceWorker' in navigator) {
// Check for the two meta elements in the head
const discordAutodetect = document.querySelector('meta[name="discord_autodetect"]')?.content === "true";
const discordEmbed = document.querySelector('meta[name="discord_embed"]')?.content === "true";
const discordAutodetect = document.querySelector('meta[name="discord_autodetect"]')?.content === 'true';
const discordEmbed = document.querySelector('meta[name="discord_embed"]')?.content === 'true';

// Determine the base URL based on the meta elements
let baseUrl = "";
let baseUrl = '';
if (discordAutodetect) {
baseUrl = window.location.hostname.includes("discord") ? ".proxy/" : "";
bbaseUrl = window.location.hostname.includes('discord') ? '.proxy/' : '';
} else if (discordEmbed) {
baseUrl = ".proxy/";
baseUrl = '.proxy/';
}

// Prepend .proxy/ to the serviceWorker value if needed
Expand Down

0 comments on commit 9b13e6b

Please sign in to comment.