Browse Source

Merge pull request #30 in BA/design from ~VITO/design:咨询窗接口 to dev

* commit '093749b709c80ac58cc6b758ec2bdee9a05c7e1f':
  去掉重复加载
master
richie 9 years ago
parent
commit
3dea98ecaf
  1. 2
      designer/src/com/fr/design/mainframe/bbs/BBSDialog.java

2
designer/src/com/fr/design/mainframe/bbs/BBSDialog.java

@ -86,8 +86,6 @@ public class BBSDialog extends UIDialog {
view.setMinSize(widthDouble, heightDouble);
view.setPrefSize(widthDouble, heightDouble);
final WebEngine eng = view.getEngine();
JSObject obj = (JSObject) eng.executeScript("window");
obj.setMember("BBSWebBridge", BBSDialog.this);//一定要在load页面之前加载接口
//webEngine的userAgent貌似支持移动设备的,任何其他浏览器的userAngent都会导致程序崩溃
//eng.setUserAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) Apple/WebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36");
eng.load(url);

Loading…
Cancel
Save