You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
559 B
15 lines
559 B
require(["dojo/_base/window","dojox/app/main", "dojox/json/ref", "dojo/text!./config.json", "dojox/app/utils/config", "dojo/sniff"], |
|
function(win, Application, jsonRef, config, configUtil, has){ |
|
var originalConfig = jsonRef.fromJson(config); |
|
var isTablet = false; |
|
var width = window.innerWidth || document.documentElement.clientWidth; |
|
if(width > 600){ |
|
isTablet = true; |
|
} |
|
|
|
has.add("testTrue", true); |
|
has.add("phone", !isTablet); |
|
|
|
// using originalConfig here because main.js will automatically process the has |
|
Application(originalConfig); |
|
});
|
|
|