Skip to content

Conversation

@atifmmahmud
Copy link
Contributor

No description provided.

@@ -0,0 +1,18 @@

<head>
<link href="prompt.css" rel="stylesheet" />
Copy link
Contributor

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>
Copy link
Contributor

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 => {
Copy link
Contributor

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'),
Copy link
Contributor

@highruned highruned Nov 21, 2018

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;
Copy link
Contributor

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');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing dependency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants