Commit af7e710d authored by jejacks0n's avatar jejacks0n

Allow binding form events before DOM has loaded

parent c5398a33
......@@ -165,7 +165,7 @@ export default class Tracking {
const enabler = () => window.snowplow('enableFormTracking', config, contexts);
if (document.readyState !== 'loading') enabler();
// else document.addEventListener('DOMContentLoaded', enabler)
else document.addEventListener('DOMContentLoaded', enabler);
}
static mixin(opts = {}) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment