Insert code
To replace the default widget files, use the insert-code method applyWidgetsOptions.
var widgetsOptions = {/*...*/};
__cs.push(['applyWidgetsOptions', widgetsOptions]);
The method's argument is an object that describes the URL for widget components depending on the device type.
The object has the form:
var widgetsOptions = {
'personal_form': {
desktop: {
js: '//callgear.com/personal_form.js',
css: '//callgear.com/personal_form_desktop.css',
tpls: {
"personal_form": '//callgear.com/personal_form.html'
}
}
}/*,
...
*/
};
This object is divided at the first level by ViewController names, and at the second by the type of device (desktop, tablet, mobile).