Conversation
Git
Asars used for testingTest results
|
src/browser/api/window.js
Outdated
| WebContents.executeJavascript(browserWindow.webContents, code, callback); | ||
| }; | ||
|
|
||
| Window.findInPage = function(identity, searchTerm, options) { |
There was a problem hiding this comment.
actually no, removing them now
Git
Asars used for testingTest results
|
Git
Asars used for testingTest results
|
|
Docs? |
|
Docs have been added to js-adapter |
| const { payload } = message; | ||
| const { searchTerm, options } = payload; | ||
| const dataAck = Object.assign({}, successAck); | ||
| const windowIdentity = getTargetWindowIdentity(payload); |
There was a problem hiding this comment.
Question: Is there a reason we wouldn't want to use the identity here instead of the payload identity? Probably doesn't make a functional difference tho
There was a problem hiding this comment.
All the other functions are using the payload one, didn't see a need to change that.
There was a problem hiding this comment.
Identity (First param) is the requesting identity, the identity in the payout is the target.
|
Will a findInPage action generate a single event or multiple? |
|
findInPage now returns a promise with the request results generated by the 'found-in-page' event. I've also left the event in as it could be useful as well. |
Git
Asars used for testingTest results
|
Description of Change
This exposes Electron's Find In Page API.
Checklist
npm testpassesTEST
Release Notes
Notes:
Added API to find and highlight text on a page.