mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 06:25:18 -04:00
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"
|
// @include "inc/**/*.js"
|
||||||
|
|
||||||
var $ = jQuery;
|
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')) {
|
if ($('html').hasClass('no-browser')) {
|
||||||
return;
|
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') {
|
if (module === 'main') {
|
||||||
url = '.';
|
url = '.';
|
||||||
} else if (module === 'info') {
|
} else if (module === 'info') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue