1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

convert four more files to es6

This commit is contained in:
dkanada 2020-04-03 03:16:06 +09:00
parent d41163d4b9
commit dbf63c723c
9 changed files with 91 additions and 90 deletions

View file

@ -1,7 +1,6 @@
define(["browser"], function (browser) {
"use strict";
import browser from 'browser';
function getDeviceIcon(device) {
export function getDeviceIcon(device) {
var baseUrl = "assets/img/devices/";
switch (device.AppName || device.Client) {
case "Samsung Smart TV":
@ -42,7 +41,7 @@ define(["browser"], function (browser) {
}
}
function getLibraryIcon(library) {
export function getLibraryIcon(library) {
switch (library) {
case "movies":
return "video_library";
@ -71,8 +70,7 @@ define(["browser"], function (browser) {
}
}
return {
export default {
getDeviceIcon: getDeviceIcon,
getLibraryIcon: getLibraryIcon
};
});
}