Skip to content

Commit

Permalink
Turned absolute url into relative (bunq#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Crecket committed May 17, 2018
1 parent 0e280d6 commit 9d272d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
.sc-RefOD {} .ZFHQN{position:absolute;left:20px;height:1.8em;width:0.9em;} .ZFHQN path{fill:#263238;}</style>
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">

<link href="/assets/css/style.css" rel="stylesheet">
<link href="./assets/css/style.css" rel="stylesheet">

</head>

Expand Down Expand Up @@ -2829,7 +2829,7 @@ <h4 id="visibility">Visibility</h4>

</script>

<script src="/service-worker-registration.js"></script>
<script src="./service-worker-registration.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion docs/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
/* eslint-disable indent, no-unused-vars, no-multiple-empty-lines, max-nested-callbacks, space-before-function-paren, quotes, comma-spacing */
'use strict';

var precacheConfig = [["/index.html","9a7f8075f4f0a483a0acf91a32154bf1"]];
var precacheConfig = [["/index.html","af7d1098c59311851c6ed1a329cbe533"]];
var cacheName = 'sw-precache-v3--' + (self.registration ? self.registration.scope : '');


Expand Down
4 changes: 2 additions & 2 deletions insert-tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ let content = fs.readFileSync(indexPath);

// get end of head location and insert link tag
const headIndex = content.indexOf("</head>");
content = insertString(headIndex, content, "\n<link href=\"/assets/css/style.css\" rel=\"stylesheet\">\n\n");
content = insertString(headIndex, content, "\n<link href=\"./assets/css/style.css\" rel=\"stylesheet\">\n\n");

// get end of body location and insert script tag
const bodyIndex = content.indexOf("</body>");
content = insertString(bodyIndex, content, "\n<script src=\"/service-worker-registration.js\"></script>\n\n");
content = insertString(bodyIndex, content, "\n<script src=\"./service-worker-registration.js\"></script>\n\n");

// write contents back to file
fs.writeFileSync(indexPath, content);
Expand Down

0 comments on commit 9d272d5

Please sign in to comment.