zombiebox-platform-webos
Version:
LG webOS Smart TV support abstraction layer for ZombieBox framework
24 lines (19 loc) • 432 B
JavaScript
/*
* This file is part of the ZombieBox package.
*
* Copyright © 2014-2020, Interfaced
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import Device from './device';
/**
* @return {?Device}
*/
export default function create() {
const isWebOSPlatform = Device.detect();
if (isWebOSPlatform) {
return new Device();
}
return null;
}