Main module to create STB application. Extends SPA app module. Adds STB-specific logic (handle screen resolution, STB events, work inside iframe, etc.).
npm install stb-appAdd the instance to the scope:
var app = require('stb-app');At run-time adds the following attributes:
| Name | Description |
|---|---|
| app.data.host | True if executed on the STB device, set by debug module at runtime. |
| app.data.screen | Screen geometry and margins. |
There is a global var
DEVELOPwhich activates additional consistency checks and protection logic not available in release mode.
If you have any problem or suggestion please open an issue here. Pull requests are welcomed with respect to the JavaScript Code Style.
stb-app is released under the MIT License.