Skip to content

Commit 606d7cf

Browse files
committed
Fix for meteor in IE8 (moment#2308)
1 parent 0f8eaff commit 606d7cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

meteor/export.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
// moment.js makes `moment` global on the window (or global) object, while Meteor expects a file-scoped global variable
22
moment = this.moment;
3-
delete this.moment;
3+
try {
4+
delete this.moment;
5+
} catch (e) {
6+
}

0 commit comments

Comments
 (0)