minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-10 14:04:44 +03:00
parent 7041714454
commit f627483322

View File

@ -58,6 +58,12 @@ if(typeof(process) != 'undefined'){
if(typeof(nw) != 'undefined'){ if(typeof(nw) != 'undefined'){
ImageGridFeatures.runtime = 'nw' ImageGridFeatures.runtime = 'nw'
// NOTE: jli is patching the Date object and with two separate
// instances we'll need to sync things up...
// XXX HACK...
global.Date !== window.Date
&& global.Date = window.Date
// node... // node...
} else { } else {
ImageGridFeatures.runtime = 'node' ImageGridFeatures.runtime = 'node'