Fix that cannot select device correctly

This commit is contained in:
NaitLee 2021-09-16 13:25:34 +08:00
parent 64d1c3528b
commit a82315e8f2
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ let bluetooth_mac_input = document.getElementById('bt_mac');
function switchDevice() {
bluetooth_mac_input.value = device_selection.selectedOptions[0].value;
}
device_selection.addEventListener('input', switchDevice);
if (device_selection != null && refresh_device_button != null && bluetooth_mac_input != null) {
refresh_device_button.addEventListener('click', event => {
notice(i18N.get('Searching devices. Please wait for 5 seconds.'));

View File

@ -36,6 +36,7 @@ Threshold:=阈值:
Please preview image first=请先预览图像
Searching devices. Please wait for 5 seconds.=正在查找设备。请等候 5 秒。
OK=完成
Printing, please wait.=打印中,请稍候。
</textarea>
<script src="i18n.js"></script>
<script src="main.js"></script>