Now, the Arc Welder is not starting test application on Windows

本秂侑毒 提交于 2019-12-04 12:40:33
CrandellWS

Workaround SOLUTION at bottom.

Ok so what I have so far is not a solution just information

The problem seems to be coming from the runtime part of the Arc Extension:

SEE-> https://chrome.google.com/webstore/detail/app-runtime-for-chrome-be/mfaihdlpglflfgpfjcifdjdjcckigekc

The problem is in the file plugin.js

// Let the CameraManager in Android know what the current orientation is
  var message = {
    namespace: 'pluginCameraManager',
    command: 'screenRotation',
    data: {
      'angle': screen.orientation.angle
    }
  };
  this.postMessage(message);

Cannot read property 'angle' of undefined at...

'angle': screen.orientation.angle

//for context
var a=Promise.all([this.createAppPlugin_(),window.arcparams.systemDirectoriesReady]);
//problem is initializeWindow_() fails
a.then(function(){this.initializeWindow_();

** WORK AROUND SOLUTION**

This may cause more bugs, I don't know, do it at own risk.

Open the file:

%LOCALAPPDATA%\Google\Chrome\User Data\Default\Extensions\mfaihdlpglflfgpfjcifdjdjcckigekc\46.5021.478.18_0\gen_index.min.js

ie

extension://joabdphlghkbahegchlcmhbaaijcgghj/_modules/mfaihdlpglflfgpfjcifdjdjcckigekc/gen_index.min.js:125:302)

So on line 125 at character 302 you should find the word 'angle' as in:

data:{angle:screen.orientation.angle}

change that to:

data:{angle:0}

0 is used,you can read about why -> Find screen angle when orientation is fixed in android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!