mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-02 00:08:19 -04:00
Refactor browser check.
This commit is contained in:
parent
8d3611e30c
commit
0a843a0b1f
5 changed files with 38 additions and 30 deletions
|
@ -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};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue