electron-find icon indicating copy to clipboard operation
electron-find copied to clipboard

can not work on "electron": "17.1.2"

Open qinzitong opened this issue 2 years ago • 1 comments

//preload.js let findInPage = new FindInPage(require('@electron/remote').getCurrentWebContents(), { preload: true, offsetTop: 6, offsetRight: 10 })

error:

TypeError: Cannot read properties of null (reading 'appendChild') at FindInPage.appendElement

qinzitong avatar Apr 26 '22 06:04 qinzitong

findInPage.js 改为这样就行了:

function appendElement () { this[findBox].appendChild(this[findInput]) this[findBox].appendChild(this[findMatches]) this[findBox].appendChild(this[findCase]) this[findBox].appendChild(this[findBack]) this[findBox].appendChild(this[findForward]) this[findBox].appendChild(this[findClose]) this.parentElement.appendChild(this[findBox]) }

qinzitong avatar Apr 26 '22 09:04 qinzitong