Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
14 lines
425 B
Plaintext
14 lines
425 B
Plaintext
import debounce from 'lodash/debounce';
|
|
function isNodeOrWeb() {
|
|
var freeGlobal = (typeof global === 'undefined' ? 'undefined' : typeof global) == 'object' &&
|
|
global &&
|
|
global.Object === Object &&
|
|
global;
|
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
return freeGlobal || freeSelf;
|
|
}
|
|
if (!isNodeOrWeb()) {
|
|
global.Date = Date;
|
|
}
|
|
export { debounce };
|