-
Notifications
You must be signed in to change notification settings - Fork 0
Electron Prompt on Startup #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| @@ -0,0 +1,18 @@ | |||
|
|
|||
| <head> | |||
| <link href="prompt.css" rel="stylesheet" /> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
index.css
| </div> | ||
| </div> | ||
| </div> | ||
| <script src="prompt.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
index.js?
| type: 'text' | ||
| }, | ||
| type: 'input' | ||
| }).then(r => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass in Windows.main as the 2nd param (parentWindow)
| const promptUrl = url.format({ | ||
| protocol: 'file', | ||
| slashes: true, | ||
| pathname: path.join(__dirname, 'page', 'prompt.html'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no 'page'
index.html not prompt.html
| }); | ||
| } | ||
|
|
||
| module.exports = electronPrompt; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export default electronPrompt
| if (opts.type === 'select' && (opts.selectOptions === null || typeof opts.selectOptions !== 'object')) { | ||
| return reject(new Error('"selectOptions" must be an object')); | ||
| const {ipcRenderer} = require('electron'); | ||
| const docReady = require('doc-ready'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing dependency?
No description provided.