Skip to content

Commit

Permalink
feat: display inserted styles in devtools in DEV
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Apr 1, 2018
1 parent 5f629b8 commit f047821
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
5 changes: 0 additions & 5 deletions addon/__tests__/index.dev.test.js

This file was deleted.

10 changes: 1 addition & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,7 @@ exports.create = function (config) {
if (process.env.NODE_ENV === 'production') {
renderer.sh.sheet.insertRule(rawCssRule, 0);
} else {
try {
renderer.sh.sheet.insertRule(rawCssRule, 0);
} catch (error) {
// eslint-disable-next-line
console.info('Could not insert CSS rule.');
console.error(error);

renderer.sh.appendChild(document.createTextNode(rawCssRule));
}
renderer.sh.appendChild(document.createTextNode(rawCssRule));
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nano-css",
"version": "1.15.2",
"version": "1.15.3",
"description": "Smallest 5th gen CSS-in-JS library",
"main": "index.js",
"unpkg": "dist/nano-css.umd.min.js",
Expand Down

0 comments on commit f047821

Please sign in to comment.