Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Fixes problems loading scripts from preview on non-UTF8 pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan J Daw committed Sep 17, 2012
1 parent a431794 commit ab8c3f9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/preview.coffee
Expand Up @@ -15,9 +15,12 @@ errorTemplate = require '../lib/errorTemplate.js'


MimeTypes =
'css': 'text/css'
'html': 'text/html'
'js': 'application/javascript'
'css': 'text/css; charset=utf8'
'html': 'text/html; charset=utf8'
'xml': 'application/xml; charset=utf8'
'xhtml': 'application/xhtml+xml; charset=utf8'
'js': 'application/javascript; charset=utf8'
'json': 'application/json; charset=utf8'
'jpeg': 'image/jpeg'
'jpg': 'image/jpeg'
'png': 'image/png'
Expand Down

0 comments on commit ab8c3f9

Please sign in to comment.