diff --git a/CHANGELOG.md b/CHANGELOG.md index b588aca..f7d1b59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.1.13](https://github.com/CoCreate-app/CoCreate-css-parser/compare/v1.1.12...v1.1.13) (2022-12-09) + + +### Bug Fixes + +* typo getAttribute save was not a string ([811913e](https://github.com/CoCreate-app/CoCreate-css-parser/commit/811913e4ff22501c00f809e559e6946a1728ca71)) + ## [1.1.12](https://github.com/CoCreate-app/CoCreate-css-parser/compare/v1.1.11...v1.1.12) (2022-12-08) diff --git a/package.json b/package.json index 7bbd304..ab96a59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cocreate/css-parser", - "version": "1.1.12", + "version": "1.1.13", "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 a9087fe..7afc60a 100644 --- a/src/index.js +++ b/src/index.js @@ -264,7 +264,7 @@ function addNewRules() { } function save() { - if (linkTag && linkTag.hasAttribute('document_id') && linkTag.getAttribute(save) != 'false') { + if (linkTag && linkTag.hasAttribute('document_id') && linkTag.getAttribute('save') != 'false') { const onlyUnique = (value, index, self) => { return self.indexOf(value) === index; };