mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
single module resolution for apiclient
This commit is contained in:
parent
ae828f76a3
commit
d49fee2a29
18 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,11 @@
|
||||||
define(["apiclientcore", "localassetmanager"], function(ApiClient, localassetmanager) {
|
//TODO: (vitorsemeano) modify this lines for webpack
|
||||||
|
define(["bower_components/apiclient/apiclientcore", "localassetmanager"], function(ApiClient, localassetmanager) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
if ("cordova" !== window.appMode && "android" !== window.appMode) {
|
||||||
|
return ApiClient;
|
||||||
|
}
|
||||||
|
|
||||||
function isLocalId(str) {
|
function isLocalId(str) {
|
||||||
return startsWith(str, localPrefix)
|
return startsWith(str, localPrefix)
|
||||||
}
|
}
|
3
src/bower_components/apiclient/package.json
vendored
Normal file
3
src/bower_components/apiclient/package.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"main": "apiclient.js"
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue