Skip to content

Commit

Permalink
Merge branch 'master' into devel
Browse files Browse the repository at this point in the history
  • Loading branch information
EastDesire committed Dec 2, 2023
2 parents 051f14a + 019fd65 commit f2c5966
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jscolor.js
Expand Up @@ -52,7 +52,11 @@ var jsc = {

register : function () {
if (typeof window !== 'undefined' && window.document) {
window.document.addEventListener('DOMContentLoaded', jsc.pub.init, false);
if (window.document.readyState !== 'loading') {
jsc.pub.init();
} else {
window.document.addEventListener('DOMContentLoaded', jsc.pub.init, false);
}
}
},

Expand Down

0 comments on commit f2c5966

Please sign in to comment.