convert four more files to es6
This commit is contained in:
@@ -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
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user