You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd suggest changing the following: var pid = process && process.pid ? process.pid.toString(36) : '' ;
to: var pid = typeof process !== 'undefined' && process.pid ? process.pid.toString(36) : '' ;
The 2nd version is more portable and safer. I pulled the uniqid module into an Angular 6 project and the code ended up running in strict mode, which caused a ReferenceError on 'process'.
The text was updated successfully, but these errors were encountered:
I'd suggest changing the following:
var pid = process && process.pid ? process.pid.toString(36) : '' ;
to:
var pid = typeof process !== 'undefined' && process.pid ? process.pid.toString(36) : '' ;
The 2nd version is more portable and safer. I pulled the uniqid module into an Angular 6 project and the code ended up running in strict mode, which caused a ReferenceError on 'process'.
The text was updated successfully, but these errors were encountered: