Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
'use strict' in Client Scripts
So, I'm a Typescript guy, so my javascript files are generated for me. By default, TypeScript injects the 'use strict' directive into the javascript. This caused an issue for my client scripts, as there are still lots of end users that use out-dated browsers that do play nice with 'use strict'.
So, no big deal, I'll simply remove that from all my generated javascript.
However, now when I do that, Netsuite throws the following error
Fail to evaluate script: org.mozilla.javascript.EcmaError: ReferenceError: "document" is not defined. (N/https.js#11)
So, I can't even remove it!
Now what. Tell me clients the need to move to Chrome? I appreciate Netsuite doing some 'evaluating' of the scripts as I load them, but this is a problem.