Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
'window' object defined in suitescript?
Has this been around long? I just noticed that a Suitelet has a global variable window defined that looks like:
{"weekstart":"1","dateformat":"MM/DD/YYYY","longdateformat":"Month DD, YYYY","timeformat":"fmHH:fmMI am","timeformatwithseconds":"fmHH:fmMI:SS am","decimalseparator":".","groupseparator":",","negativeprefix":"-","negativesuffix":"","datetime_am_string":"am","datetime_pm_string":"pm","datetime_short_months":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]} That variable collides with libraries that expect the presence of a window global to mean they are running in browser.
It looks like "window" in this context is meant to represent window of time?
0