]> git.ardis.lu - cloudflare-workers/commitdiff
Use same protocol as host
authorArdis Lu <ardisglu@gmail.com>
Tue, 27 Jun 2023 03:19:49 +0000 (20:19 -0700)
committerArdis Lu <ardisglu@gmail.com>
Tue, 27 Jun 2023 03:19:49 +0000 (20:19 -0700)
Fixes issue where style is injected on http site

style/index.js

index 9874c4d1f2c371530efd1641e973b387eb425f27..fb9f45a37e609e3d114c2f628bdf125803138881 100644 (file)
@@ -1,6 +1,6 @@
 class InjectStyle {
   element(element) {
-    element.prepend(`<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/sakura.css@1.3.1/css/sakura.min.css">`, { html: true });
+    element.prepend(`<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/sakura.css@1.3.1/css/sakura.min.css">`, { html: true });
   }
 }
 
This page took 0.046618 seconds and 4 git commands to generate.