soiz1 commited on
Commit
0e2cd10
·
1 Parent(s): fd8416f

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +12 -0
index.html CHANGED
@@ -638,6 +638,18 @@ document.addEventListener('DOMContentLoaded', function() {
638
  video.load();
639
  }
640
  });
 
 
 
 
 
 
 
 
 
 
 
 
641
  </script>
642
  <!-- テクノロジー風背景 -->
643
  <div class="tech-background" id="techBg"></div>
 
638
  video.load();
639
  }
640
  });
641
+
642
+ // sw-register.js
643
+ if ('serviceWorker' in navigator) {
644
+ window.addEventListener('load', () => {
645
+ navigator.serviceWorker.register('/service-worker.js').then(registration => {
646
+ alert('SW registered:' + registration);
647
+ }).catch(error => {
648
+ alert('SW registration failed:' + error);
649
+ });
650
+ });
651
+ }
652
+
653
  </script>
654
  <!-- テクノロジー風背景 -->
655
  <div class="tech-background" id="techBg"></div>