1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/waterlyx-notification_assistant

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
preload.js 433 Байты
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
liuyexing Отправлено 09.12.2019 16:13 d314f00
// 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])
}
})

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/waterlyx-notification_assistant.git
git@api.gitlife.ru:oschina-mirror/waterlyx-notification_assistant.git
oschina-mirror
waterlyx-notification_assistant
waterlyx-notification_assistant
master