dojox/mobile/deviceTheme Override Theme


I’ve got a web page that’s using dojox/mobile/deviceTheme and one user would like to override the device theming.

I’ve looked through the docs, and I see the recommended way of either specifying ?theme= on the URL for the deviceTheme.js file, or by setting a data-dojo-config attribute on the script tag including the deviceTheme.js file.

The problem is that right now, I’m loading dojox/mobile/deviceTheme in a require statement. How can I accomplish overriding the theme when deviceTheme.js is loaded via require()?


Never mind. I found that if I put the mblUserAgent property in the data-dojo-config for dojo.js, that works as well.