1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 05:10:05 +02:00

add node modules to repo

This commit is contained in:
s2
2018-06-03 13:47:11 +02:00
parent e8c95255e8
commit d002126b72
4115 changed files with 440218 additions and 7519 deletions

View File

@@ -0,0 +1,20 @@
const searchInPage = require('../..').default;
/*
* Create a search instance for the current page.
* Make sure that create the search instance per one WebContents instance.
*/
let search;
const webview = document.getElementById('target-webview');
webview.addEventListener('dom-ready', () => {
search = searchInPage(webview);
console.log(search);
});
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();
});