From c2e7bd5f1eb7e0f2bcf5f334d95ab33891c2c58d Mon Sep 17 00:00:00 2001 From: cpu Date: Sun, 30 Mar 2025 23:46:13 +0200 Subject: [PATCH] clean up --- js/config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/config.js b/js/config.js index 4ca4a4e..09b47fd 100644 --- a/js/config.js +++ b/js/config.js @@ -3,15 +3,14 @@ import { getEnv } from './env-loader.js'; export function getPublicVapidKey() { // Get the VAPID key from environment variables through the env-loader - return getEnv('PUBLIC_VAPID_KEY', 'BKfRJXjSQmAJ452gLwlK_8scGrW6qMU1mBRp39ONtcQHkSsQgmLAaODIyGbgHyRpnDEv3HfXV1oGh3SC0fHxY0E'); + return getEnv('PUBLIC_VAPID_KEY'); } // The VAPID key should not be exposed directly in the source code // Use the getter function instead: getPublicVapidKey() -// export const PUBLIC_VAPID_KEY = 'BKfRJXjSQmAJ452gLwlK_8scGrW6qMU1mBRp39ONtcQHkSsQgmLAaODIyGbgHyRpnDEv3HfXV1oGh3SC0fHxY0E'; // Get backend URL from environment variables -export const BACKEND_URL = getEnv('BACKEND_URL', 'https://webpush.virtonline.eu'); +export const BACKEND_URL = getEnv('BACKEND_URL'); export const FLIC_BUTTON_ID = 'game-button'; // Example ID, might need configuration export const LOCAL_STORAGE_KEY = 'gameTimerData';