Electron v1.4.7 發布,JavaScript桌面應用開發庫

jopen 8年前發布 | 8K 次閱讀 Electron JavaScript

 

Electron 可以讓你使用純 JavaScript 調用豐富的原生 APIs 來創造桌面應用。你可以把它看作是專注于桌面應用而不是 web 服務器的,io.js 的一個變體。

 

更新日志

依賴關系升級

  • Squirrel.Mac, Electron's bundled macOS auto updater library, was upgraded to 0.3.0 which includes several bug fixes. The new version enables App Transport Security (ATS) on all requests it makes to the update server. This can be disabled, if needed, by adding NSAllowsArbitraryLoads to the app's plist file. #7933

新API

  • You can now enable the macOS vibrancy effect on a BrowserWindow by callingsetVibrancy(vibrancyType) or by including a vibrancy value in the constructor options. #7898
  • You can now specify POST data when calling BrowserWindow.loadURL via the postData option. Also<form> tags configured with method=post will now make POST requests with their data when submitted. #7540
  • The certificate specified to the session.setCertificateVerifyProc callback now includes the entire certificate chain. #7917
  • The <webview> tag now supports a disableguestresize attribute that will disable automatic resizing of the guest webContents when the <webview> element resizes. You can now call setSize directly on the guest webContents to manually control the size. #7658
  • The chrome.storage.remove and chrome.storage.clear APIs are now available to DevTools extensions. #7923

Bug 修復

  • The about: protocol is now correctly supported by default. #7908
  • Menu item keyboard accelerators are now properly disabled when the menu item is disabled. #7962
  • The check for disabling ASAR support via the ELECTRON_NO_ASAR environment variable is now cached for better performance. #7978
  • Fixed a crash when calling app.setAboutPanelOptions(options) with a credits value. #7979
  • Fixed an issue where an error would be thrown in certain cases when accessing remote objects or functions. #7980
  • Fixed an issue where the window.opener API did not behave as expected.

下載

本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/1aa6ec44

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!