stb-app
v2.0.3
Published
STB SDK application core.
Downloads
11
Readme
Application core
Main module to create STB application. Extends SPA app module. Adds STB-specific logic (handle screen resolution, STB events, work inside iframe, etc.).
Installation
npm install stb-app
Usage
Add 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.
Development mode
There is a global var
DEVELOP
which activates additional consistency checks and protection logic not available in release mode.
Contribution
If you have any problem or suggestion please open an issue here. Pull requests are welcomed with respect to the JavaScript Code Style.
License
stb-app
is released under the MIT License.