Difference between revisions of "AppSuite:Debugging the UI"

(Clear all persistent caches)
Line 16: Line 16:
  
 
== Clear all persistent caches ==
 
== Clear all persistent caches ==
 +
Please mind that this does not clear the regular browser cache! It clears localStorage, IndexedDB, and WebSQL.
 
<pre class="language-javascript">  
 
<pre class="language-javascript">  
 
ox.cache.clear();
 
ox.cache.clear();

Revision as of 10:07, 29 August 2013

Debugging the UI

Synopsis: A collection of hints to debug during UI development

What capabilities are available?

 
_(ox.serverConfig.capabilities).pluck("id").sort();

Check settings

 
// check core settings
require('settings!io.ox/core').get();
// check mail settings
require('settings!io.ox/mail').get();

Clear all persistent caches

Please mind that this does not clear the regular browser cache! It clears localStorage, IndexedDB, and WebSQL.

 
ox.cache.clear();

Debug relogin

 
ox.autoLogoutRestartDebug();

Enable/disable capability via URL hash

Just add the parameter "cap" to URL hash. A leading minus disables a capability. Multiple capabilities separated by comma. Example:

 
...&cap=emoji,-calendar