lbry-desktop/static/index-electron.html
2019-11-13 09:53:01 -05:00

28 lines
714 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>LBRY</title>
</head>
<body>
<div id="app"></div>
<script>
function loadUi() {
const script = document.createElement('script');
script.setAttribute('src', 'ui.js');
document.body.appendChild(script);
}
require('electron').ipcRenderer.on('language-set', (event, messages, language, error) => {
window.i18n_messages = messages;
window.localStorage.setItem('language', language);
if(error) {
console.error('Can\'t set language to ' + language);
console.error(error);
}
loadUi();
});
</script>
</body>
</html>