Contains platform identification features as a plugin for the WinJSRocks MVVM Framework for WinJS apps.
To activate, import the plugin project from npm:
npm install winjsrocks-plugin-platform
Then, register in the WinJSRocks.Application.Instance.configure
options within the plugins
array:
var WinJSRocks = require('winjsrocks');
var WinJSRocksPluginPlatform = require('winjsrocks-plugin-platform');
var app = new WinJSRocks.Application();
app.configure({
plugins:[
WinJSRocksPluginPlatform // Provide the Class Definition of the Plugin
]
},
function(err){
});
- Platform.js automatically mapped to the app
body
tag