UNPKG

dojox

Version:

Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.

16 lines (13 loc) 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); });