diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-16 19:08:29 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-16 19:08:29 +0800 |
| commit | 434aa8343fdcbb4d5002f934979913c099489bee (patch) | |
| tree | 55bab4ec5a6151be57797d34f61faf5ea744471b /frontend-old/script.js | |
| parent | 893c388d4e99442a36005e5971a87730623f946e (diff) | |
sdk, del
Diffstat (limited to 'frontend-old/script.js')
| -rw-r--r-- | frontend-old/script.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/frontend-old/script.js b/frontend-old/script.js deleted file mode 100644 index 848900e..0000000 --- a/frontend-old/script.js +++ /dev/null @@ -1,43 +0,0 @@ -// Give the service worker access to Firebase Messaging. -// Note that you can only use Firebase Messaging here. Other Firebase libraries -// are not available in the service worker. -// Replace 10.13.2 with latest version of the Firebase JS SDK. -import { initializeApp } from "firebase/app"; -import { getMessaging, onMessage } from "firebase/messaging"; - -// Initialize the Firebase app in the service worker by passing in -// your app's Firebase config object. -// https://firebase.google.com/docs/web/setup#config-object -const app = initializeApp({ - apiKey: "AIzaSyBGAmu8jDF4YN8v7n0pddM_0ZyYyC1UnUY", - authDomain: "victoria-hall-laundryweb-cm.firebaseapp.com", - projectId: "victoria-hall-laundryweb-cm", - storageBucket: "victoria-hall-laundryweb-cm.firebasestorage.app", - messagingSenderId: "693379336541", - appId: "1:693379336541:web:6697894ff39d20e8a700b4" -}); - -// Retrieve an instance of Firebase Messaging so that it can handle background -// messages. -const messaging = getMessaging(app); - -onMessage(messaging, (payload) => { - console.log('go fuck yourself ', payload); -}); - -document.cookie = "session_key=0" - -const data = { - duration: 2, - block: 1, - machine: 2, -} - -fetch("http://localhost:8000/start", { - credentials: "include", - method: "POST", - headers: { - "Content-Type": "application/json" - }, - body: JSON.stringify(data) -}); |
