Skip to content

Commit

Permalink
Fix entrypoint and npm ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost---Shadow committed Feb 21, 2021
1 parent 9212afa commit cdfc136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
!package.json
!package-lock.json
!LICENSE
*.test.js
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { generateCss } = require('./src/cssGenerator');
const { colors, registerColors } = require('./src/colors');
const { WORD_HIGHLIGHTER } = require('./src/constants');

if (document) {
if (typeof document !== 'undefined') {
const css = generateCss();
const headDom = document.getElementsByTagName('head').item(0);
headDom.innerHTML += css;
Expand Down

0 comments on commit cdfc136

Please sign in to comment.