2 Star 3 Fork 1

广州梦车间信息科技有限公司 / kidincode

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
preload.js 433 Bytes
Copy Edit Raw Blame History
HiroKwok authored 2020-07-01 07:44 . 创建项目
// All of the Node.js APIs are available in the preload process.
// It has the same sandbox as a Chrome extension.
window.addEventListener('DOMContentLoaded', () => {
const replaceText = (selector, text) => {
const element = document.getElementById(selector)
if (element) element.innerText = text
}
for (const type of ['chrome', 'node', 'electron']) {
replaceText(`${type}-version`, process.versions[type])
}
})
1
https://gitee.com/tansor/kidincode.git
git@gitee.com:tansor/kidincode.git
tansor
kidincode
kidincode
master

Search