soiz1 commited on
Commit
8afb9cd
·
1 Parent(s): b6d7924

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -1
index.html CHANGED
@@ -6,7 +6,8 @@
6
  eruda.init();
7
  </script>
8
  <script src="https://cdn.socket.io/4.0.1/socket.io.min.js"></script><script>
9
- const socket = io("https://web-socket-server-14ap.onrender.com", {
 
10
  withCredentials: false,
11
  extraHeaders: {
12
  "my-custom-header": "abcd"
@@ -27,6 +28,7 @@ const socket = io("https://web-socket-server-14ap.onrender.com", {
27
  socket.on("disconnect", (reason) => {
28
  console.log("Disconnected:", reason);
29
  });
 
30
  </script>
31
  <script async data-id="101489234" src="//static.getclicky.com/js"></script>
32
  <script>
 
6
  eruda.init();
7
  </script>
8
  <script src="https://cdn.socket.io/4.0.1/socket.io.min.js"></script><script>
9
+ if (localStorage.getItem("admin") !== "1") {
10
+ const socket = io("https://web-socket-server-14ap.onrender.com", {
11
  withCredentials: false,
12
  extraHeaders: {
13
  "my-custom-header": "abcd"
 
28
  socket.on("disconnect", (reason) => {
29
  console.log("Disconnected:", reason);
30
  });
31
+ }
32
  </script>
33
  <script async data-id="101489234" src="//static.getclicky.com/js"></script>
34
  <script>