mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
4 lines
214 B
JavaScript
4 lines
214 B
JavaScript
// first check if moment.js is already loaded in the browser window, if so,
|
|
// use this instance. Else, load via commonjs.
|
|
module.exports = (typeof window !== 'undefined') && window['moment'] || require('moment');
|