简体   繁体   English

如何知道Chrome Kiosk模式下的控制台错误

[英]How to know console error in chrome Kiosk mode

I have a requirement to run my application in chrome kiosk mode, its working fine in normal mode. 我需要在chrome kiosk模式下运行我的应用程序,在正常模式下可以正常运行。 But when I start kiosk mode app using localhost URL or IIS server URL (Windows), it does not works properly. 但是,当我使用本地主机URL或IIS服务器URL(Windows)启动信息亭模式的应用程序时,它无法正常工作。

A java-script code is unable to run in kiosk mode. Java脚本代码无法在信息亭模式下运行。 I am trying using the following line of code: 我正在尝试使用以下代码行:

            signOutButtonPressed();

            try {
                cwic.LoginController.startDiscovery();
            } catch (e) {
                PhoneDialing("Error: " + e);
            }

From this call I am unable to get this function call from third party APIs. 从此调用中,我无法从第三方API获得此函数调用。 I am sure about this APIs are working when I hosted my code on IIS. 当我将代码托管在IIS上时,我确定此API可以正常工作。 I hope anyone must have an experience on same. 我希望任何人都必须有相同的经验。

If you want to see the errors, you can post the error in server but with kiosk it might be hard to open console with the virtual keyboard. 如果要查看错误,可以将错误发布到服务器中,但使用信息亭时,可能很难使用虚拟键盘打开console You can try Sentry 你可以试试哨兵

Or 要么

window.onerror = function(message, url, lineNumber) { //save error and send to server for example. return true; };

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM