Skip to content

Commit

Permalink
Merge pull request #49 from Grapestain/master
Browse files Browse the repository at this point in the history
Fixed postscribe issue - call only if defined
  • Loading branch information
gsimone committed Jan 3, 2019
2 parents 9f80fcd + 593d497 commit ab098d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cookies-enabler.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ window.COOKIES_ENABLER = window.COOKIES_ENABLER || (function () {

if (scripts[i].hasAttribute('data-ce-src')){

if (typeof postscribe === "undefined"){
if (typeof postscribe !== "undefined"){
postscribe(scripts[i].parentNode, '<script src="' + scripts[i].getAttribute("data-ce-src") + '"></script>');
}

Expand Down
2 changes: 1 addition & 1 deletion cookies-enabler.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab098d2

Please sign in to comment.