This commit is contained in:
Cassie Tarakajian 2018-10-16 11:43:07 -04:00
parent a1645a04b4
commit 54002feb1d

View file

@ -24,8 +24,7 @@ export function serveProject(req, res) {
const sketchDoc = window.document; const sketchDoc = window.document;
const base = sketchDoc.createElement('base'); const base = sketchDoc.createElement('base');
// const fullUrl = `${req.protocol}://${req.get('host')}${req.originalUrl}`; const fullUrl = `https://${req.get('host')}${req.originalUrl}`;
const fullUrl = `https://${req.get('host')}`;
base.href = `${fullUrl}/`; base.href = `${fullUrl}/`;
sketchDoc.head.appendChild(base); sketchDoc.head.appendChild(base);