Update js init.
This commit is contained in:
parent
c9ca2eeb23
commit
bba2eb401d
1 changed files with 4 additions and 3 deletions
|
@ -28,14 +28,15 @@
|
|||
// @include "inc/**/*.js"
|
||||
|
||||
var $ = jQuery;
|
||||
var module = $('script[data-module]').data('module');
|
||||
var data = {action: 'get', setup: true, options: true, types: true, theme: true, langs: true};
|
||||
var url;
|
||||
|
||||
if ($('html').hasClass('no-browser')) {
|
||||
return;
|
||||
}
|
||||
|
||||
var module = $('script[data-module]').data('module');
|
||||
var data = {action: 'get', setup: true, options: true, types: true, theme: true, langs: true};
|
||||
var url;
|
||||
|
||||
if (module === 'main') {
|
||||
url = '.';
|
||||
} else if (module === 'info') {
|
||||
|
|
Loading…
Add table
Reference in a new issue