mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-09 07:16:40 +02:00
Clean code.
This commit is contained in:
@@ -16,8 +16,8 @@ modulejs.define('core/resource', ['_', '$', 'config', 'core/settings'], function
|
|||||||
|
|
||||||
function icon(id) {
|
function icon(id) {
|
||||||
|
|
||||||
var baseId = id.split('-')[0],
|
var baseId = id.split('-')[0];
|
||||||
href = config.theme[id] || config.theme[baseId];
|
var href = config.theme[id] || config.theme[baseId];
|
||||||
|
|
||||||
if (href) {
|
if (href) {
|
||||||
return themesHref + href;
|
return themesHref + href;
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
modulejs.define('core/server', ['$', '_', 'config', 'core/location'], function ($, _, config, location) {
|
modulejs.define('core/server', ['$', '_', 'config', 'core/location'], function ($, _, config, location) {
|
||||||
|
|
||||||
|
|
||||||
var hasApi = config.setup.API === true;
|
var hasApi = config.setup.API === true;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user