Skip to content

Commit

Permalink
Fix serving theme vars cross platform
Browse files Browse the repository at this point in the history
  • Loading branch information
RangerMauve committed Oct 6, 2020
1 parent 1d6d92e commit 541d2ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/protocols/browser-protocol.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const path = require('path').posix
const path = require('path')
const mime = require('mime/lite')
const ScopedFS = require('scoped-fs')
const { Readable } = require('stream')
Expand All @@ -24,7 +24,7 @@ module.exports = async function createHandler () {
const { pathname, hostname } = parsed
const toResolve = path.join(hostname, pathname)

if (toResolve === 'theme/vars.css') {
if ((hostname === 'theme') && (pathname === '/vars.css')) {
const statusCode = 200

const themes = Object
Expand Down

0 comments on commit 541d2ea

Please sign in to comment.