首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何让angular webapp支持webos lg tv网络浏览器?

如何让angular webapp支持webos lg tv网络浏览器?
EN

Stack Overflow用户
提问于 2020-12-28 17:58:52
回答 1查看 352关注 0票数 1

我用angular 8开发了一个angular web应用程序。这个应用程序可以在大多数浏览器上运行,但是,当我尝试从lg智能电视的web浏览器打开一个网页时,应用程序打开了,但我无法登录。

如何使angular web应用程序可在lg智能电视网页浏览器中运行?

我的polyfills.ts文件如下:

代码语言:javascript
复制
/**
 * This file includes polyfills needed by Angular and is loaded before the app.
 * You can add your own extra polyfills to this file.
 *
 * This file is divided into 2 sections:
 *   1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
 *   2. Application imports. Files imported after ZoneJS that should be loaded before your main
 *      file.
 *
 * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
 * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
 * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
 *
 * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
 */

/***************************************************************************************************
 * BROWSER POLYFILLS
 */

/** IE9, IE10 and IE11 requires all of the following polyfills. **/
// import 'core-js/es6/symbol';
// import 'core-js/es6/object';
// import 'core-js/es6/function';
// import 'core-js/es6/parse-int';
// import 'core-js/es6/parse-float';
// import 'core-js/es6/number';
// import 'core-js/es6/math';
// import 'core-js/es6/string';
// import 'core-js/es6/date';
// import 'core-js/es6/array';
// import 'core-js/es6/regexp';
// import 'core-js/es6/map';
// import 'core-js/es6/weak-map';
// import 'core-js/es6/set';

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js';  // Run `npm install --save classlist.js`.

/** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect';


/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
// import 'core-js/es7/reflect';
import 'core-js/proposals/reflect-metadata';


/**
 * Required to support Web Animations `@angular/platform-browser/animations`.
 * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
 **/
// import 'web-animations-js';  // Run `npm install --save web-animations-js`.



/***************************************************************************************************
 * Zone JS is required by default for Angular itself.
 */
import 'zone.js/dist/zone';  // Included with Angular CLI.



/***************************************************************************************************
 * APPLICATION IMPORTS
 */
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-12-28 18:14:28

取决于WebOs版本。

WebOS Browser是Lg自制的Lg内置浏览器。因此,这类浏览器通常缺乏功能和最新的Javascript更新。

从webOS TV 3.X开始,内置的网络浏览器使用的是Chromium引擎。但如果webOS TV是1.X或2.X,那么它使用的是旧版本的webkit引擎。

首先,您需要找出您想要支持的webOS版本。

http://webostv.developer.lge.com/discover/specifications/web-engine/

您可以尝试从WebOS web浏览器访问此链接,并检查其兼容性:

kangax.github.io/compat-table/es5/

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65475827

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档