Socket
Socket
Sign inDemoInstall

electron-1min

Package Overview
Dependencies
22
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    electron-1min

Core application template for electron


Version published
Maintainers
1
Created

Readme

Source

Renderer JS

Những function có thể dùng trong render

window.api.log
window.api.toolbaseDirectory
window.api.isMenuLocked
window.api.getLogFilePath()
window.api.toolbaseDirectory
window.api.send(channel, data) 
window.api.listen(channel, func) 
window.api.lockMenu()
window.api.unlockMenu()
window.api.checkMenuLockedStatus() 
window.api.closeWindow()
window.api.minimizeWindow()
window.api.maximizeWindow()
window.api.getApplicationMenu();
window.api.openInternal(page)
window.api.openExternalLink(url)
window.api.showOpenFileDialog(options)
window.api.showSaveFileDialog(options)
window.api.openExternalFileOrFolder(filePath)
window.api.lockMenu()
window.api.unlockMenu()
window.api.checkMenuLockedStatus()
window.api.getNodeVersion()        
window.api.getChromeVersion()
window.api.getElectronVersion()
window.api.getApplicationVersion()
window.modal.showModal(options)
window.modal.hideModal()

window.contentLoading.show();
window.contentLoading.hide();

##TODO

Xử lý hiện tượng flash khi chuyển các trang

Tạo một window mới load trang mới khi nào load xong thì mới hiện đè window mới lên window và set lại main window

FAQs

Last updated on 16 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc