Skip to content

Commit

Permalink
Use rawgit.com for CSS reset link (file saver)
Browse files Browse the repository at this point in the history
  • Loading branch information
markhillard committed Jan 21, 2017
1 parent 68173d7 commit 4976dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ E(document).ready(function () {

// save as html file
E('.save').on('click', function () {
var text = '<!DOCTYPE html>\n<html lang="en">\n<head>\n<link rel="stylesheet" href="https://raw.githubusercontent.com/markhillard/Editor/gh-pages/css/reset.css">\n<style>\n' + editorCSS.getValue() + '\n</style>\n</head>\n<body>\n' + editorHTML.getValue() + '\n<script>\n' + editorJS.getValue() + '\n</script>\n</body>\n</html>\n';
var text = '<!DOCTYPE html>\n<html lang="en">\n<head>\n<link rel="stylesheet" href="https://rawgit.com/markhillard/Editor/gh-pages/css/reset.css">\n<style>\n' + editorCSS.getValue() + '\n</style>\n</head>\n<body>\n' + editorHTML.getValue() + '\n<script>\n' + editorJS.getValue() + '\n</script>\n</body>\n</html>\n';
var blob = new Blob([text], {
type: 'text/html; charset=utf-8'
});
Expand Down

0 comments on commit 4976dc4

Please sign in to comment.