]> git.cworth.org Git - lmno.games/commitdiff
Use absolute references for CSS and JS files
authorCarl Worth <cworth@cworth.org>
Thu, 21 May 2020 17:14:55 +0000 (10:14 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 21 May 2020 17:14:55 +0000 (10:14 -0700)
I wouldn't expect this to have a behavioral change, but I recently got
a bug report from some users who where unable to get these resources,
(their browser was trying to fetch them from
https://lmno.games/game.css instead of
https://lmno.games/epires/game.css).

empires/game.html

index 657464a56e3beec1874cbc99e9d4116565b60110..d3be569162c0dd5e5c180cf44a583f0d104a4183 100644 (file)
@@ -8,11 +8,11 @@
 
     <link rel="stylesheet" href="/reset.css" type="text/css" />
     <link rel="stylesheet" href="/style.css" type="text/css" />
-    <link rel="stylesheet" href="../game.css" type="text/css" />
+    <link rel="stylesheet" href="/empires/game.css" type="text/css" />
   </head>
   <body>
 
-    <script src="../game.js"></script>
+    <script src="/empires/game.js"></script>
 
     <div id="page">