Refactor browser check.

This commit is contained in:
Lars Jung 2015-05-16 21:36:05 +02:00
parent 8d3611e30c
commit 0a843a0b1f
5 changed files with 38 additions and 30 deletions

View file

@ -1,9 +1,5 @@
modulejs.define('boot', ['$', 'core/server'], function ($, server) {
if ($('html').hasClass('no-browser')) {
return;
}
var module = $('script[data-module]').data('module');
var data = {action: 'get', setup: true, options: true, types: true};