rmr-util 1.1.140 → 1.1.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1596,6 +1596,10 @@
1596
1596
 
1597
1597
  if (typeof window !== 'undefined' && typeof document !== 'undefined') {
1598
1598
 
1599
+ if (!document.body) {
1600
+ return;
1601
+ }
1602
+
1599
1603
  window.addEventListener('load', () => {
1600
1604
  document.body.classList.add('rmr-load');
1601
1605
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rmr-util",
3
- "version": "1.1.140",
3
+ "version": "1.1.141",
4
4
  "description": "JS & CSS for your browser",
5
5
  "url": "https://davidfmiller.github.io/rmr-util/",
6
6
  "license": "ISC",