mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 13:10:09 +02:00
add node modules to repo
This commit is contained in:
16
app/node_modules/electron-in-page-search/example/browser-window/renderer.js
generated
vendored
Normal file
16
app/node_modules/electron-in-page-search/example/browser-window/renderer.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
const searchInPage = require('../..').default;
|
||||
const remote = require('electron').remote;
|
||||
|
||||
/*
|
||||
* Create a search instance for the current page.
|
||||
* Make sure that create the search instance per one WebContents instance.
|
||||
*/
|
||||
const search = searchInPage(remote.getCurrentWebContents());
|
||||
|
||||
document.getElementById('search-page-button').addEventListener('click', () => {
|
||||
/*
|
||||
* .openSearchWindow() method opens and activates a search window.
|
||||
* User can input the query and start the word seatch in page.
|
||||
*/
|
||||
search.openSearchWindow();
|
||||
});
|
Reference in New Issue
Block a user