问题描述
我正在构建电子桌面应用程序,用户可以在其中使用OAuth凭据授予对其云驱动器的访问权限。过去工作正常。最近,它无法正确呈现html。即使用户输入凭据,他也无法提交表单。
I am building electron desktop app where user can grant access to his cloud drive using OAuth credentials. It used to work fine. Recently it is not rendering html properly. Eventhough user enters credentials, he is not able to submit form.
错误提示以下。
请检查屏幕截图:
Please check the screenshot :
添加另一个屏幕,如何禁用提交按钮以及用户名和密码文本框在视图后面。
Adding another screen how submit button is disabled and user name and password text boxes are behind the view.
电子过程详细信息:
process.versions :
ares: 1.10.1-DEV
原子壳: 1.4.14
铬: 53.0.2785.143
电子: 1.4.14
http_parser: 2.7.0
模块: 50
节点: 6.5.0
openssl: 1.0.2h
uv: 1.9。 1
v8: 5.3.332.47
zlib: 1.2.8
Electron process details :process.versions :ares: "1.10.1-DEV"atom-shell: "1.4.14"chrome: "53.0.2785.143"electron: "1.4.14"http_parser: "2.7.0"modules: "50"node: "6.5.0"openssl: "1.0.2h"uv: "1.9.1"v8: "5.3.332.47"zlib: "1.2.8"
推荐答案
此HAP之所以使用笔,是因为 BrowserWindow
默认启用了 nodeIntergration
标志。这与 Dropbox
捆绑在一起的 RequireJS
实现冲突。
This happens because BrowserWindow
has the nodeIntergration
flag enabled by default. And this conflicts with the RequireJS
implementation with which Dropbox
was bundled.
在创建新的 BrowserWindow
时,尝试将 nodeIntergration
设置为false。
Try to set nodeIntergration
to false when creating a new BrowserWindow
.
有关更多详细信息,请从类似问题中查看我的答案:
For more details, please check out my answer from a similar question:Dropbox oauth window is not working
这篇关于Dropbox OAuth视图无法正确呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!