bookingsync-calendar-widget
Advanced tools
Comparing version
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
## [0.2.4] - 2017-08-14 | ||
### Fixed | ||
- handling adding js-script with async attribute | ||
## [0.2.3] - 2017-08-14 | ||
@@ -5,0 +9,0 @@ ### Fixed |
{ | ||
"name": "bookingsync-calendar-widget", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "BookingSync Calendar Widget", | ||
@@ -5,0 +5,0 @@ "main": "dist/bookingsync-calendar-widget.js", |
@@ -31,8 +31,13 @@ /* global document, module, VERSION, require */ | ||
document.addEventListener('DOMContentLoaded', () => { | ||
if (CalendarConst.autoInit !== false) { | ||
if (CalendarConst.autoInit !== false) { | ||
if (document.readyState !== 'loading') { | ||
CalendarConst.init(); | ||
} else { | ||
document.addEventListener('DOMContentLoaded', () => { | ||
CalendarConst.init(); | ||
}); | ||
} | ||
}); | ||
} | ||
module.exports = CalendarConst; |
Sorry, the diff of this file is too big to display
377168
0.06%1652
0.3%