diff --git a/CHANGELOG.md b/CHANGELOG.md index 3750985..ba6a6ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.1.0](https://github.com/CoCreate-app/CoCreate-css-parser/compare/v1.0.17...v1.1.0) (2022-11-23) + + +### Features + +* link tag styles will only save if a document_id is defined ([e8083c3](https://github.com/CoCreate-app/CoCreate-css-parser/commit/e8083c320e835e79bd26deaccce9fbb4fd2f20ca)) + ## [1.0.17](https://github.com/CoCreate-app/CoCreate-css-parser/compare/v1.0.16...v1.0.17) (2022-11-22) diff --git a/package.json b/package.json index ebdee11..55b496b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cocreate/css-parser", - "version": "1.0.17", + "version": "1.1.0", "description": "A simple css-parser component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.", "keywords": [ "css-parser", diff --git a/src/index.js b/src/index.js index 778dffe..bd3fff8 100644 --- a/src/index.js +++ b/src/index.js @@ -270,7 +270,7 @@ function addNewRules() { } function save() { - if (linkTag) { + if (linkTag && linkTag.hasAttribute('document_id')) { const onlyUnique = (value, index, self) => { return self.indexOf(value) === index; };