mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-20 09:10:08 -07:00
Fix that cannot select device correctly
This commit is contained in:
parent
64d1c3528b
commit
a82315e8f2
@ -10,6 +10,7 @@ let bluetooth_mac_input = document.getElementById('bt_mac');
|
|||||||
function switchDevice() {
|
function switchDevice() {
|
||||||
bluetooth_mac_input.value = device_selection.selectedOptions[0].value;
|
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) {
|
if (device_selection != null && refresh_device_button != null && bluetooth_mac_input != null) {
|
||||||
refresh_device_button.addEventListener('click', event => {
|
refresh_device_button.addEventListener('click', event => {
|
||||||
notice(i18N.get('Searching devices. Please wait for 5 seconds.'));
|
notice(i18N.get('Searching devices. Please wait for 5 seconds.'));
|
||||||
|
@ -36,6 +36,7 @@ Threshold:=阈值:
|
|||||||
Please preview image first=请先预览图像
|
Please preview image first=请先预览图像
|
||||||
Searching devices. Please wait for 5 seconds.=正在查找设备。请等候 5 秒。
|
Searching devices. Please wait for 5 seconds.=正在查找设备。请等候 5 秒。
|
||||||
OK=完成
|
OK=完成
|
||||||
|
Printing, please wait.=打印中,请稍候。
|
||||||
</textarea>
|
</textarea>
|
||||||
<script src="i18n.js"></script>
|
<script src="i18n.js"></script>
|
||||||
<script src="main.js"></script>
|
<script src="main.js"></script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user