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; }