If the last script to load is not Blanket then data attributes can't be retrieved. Many modern browsers have support for document.currentScript which gives you the script tag for the currently executing script.
I have modified config.js to to make use of document.currentScript if it exists.
If the last script to load is not Blanket then data attributes can't be retrieved. Many modern browsers have support for
document.currentScript
which gives you the script tag for the currently executing script.I have modified
config.js
to to make use ofdocument.currentScript
if it exists.