Skip to content

Node.js based forum software built for the modern web

closed #727

Julian Lam5c048ac20a4c
diff --git a/public/src/utils.js b/public/src/utils.js
index 2fa9d047fa..01698fe932 100644
--- a/public/src/utils.js
+++ b/public/src/utils.js
@@ -6,6 +6,8 @@
if ('undefined' === typeof window) {
fs = require('fs');
XRegExp = require('xregexp').XRegExp;
+ } else {
+ XRegExp = window.XRegExp;
}