I want to have an HTML Widget in Brightauthor, pointing to a certain webpage I own.
In this webpage I want to use the new Javascript API.
I correctly ticked the box Enable BrightSign JavaScript Object on my Widget
I can also correctly use the former Brightscript-javascript object.
e.g. This code works correctly :
var device_info = new BSDeviceInfo();
var myDeviceInfo = {
'model': device_info.model,
'version': device_info.version
}
Looking at this documentation.
https://brightsign.atlassian.net/wiki/spaces/DOC/pages/370678188/JavaScript+APIs
My webpage now fails with this require call...
diClass = require("@brightsign/deviceinfo");
Client side browser javascript doesn't have require like node.js.
Is this new API supposed to work with an HTML5 Widget ?