Skip to content
This repository was archived by the owner on Feb 12, 2023. It is now read-only.

Commit 7f1297b

Browse files
author
Ke, Mingze
committed
Renamed serial.{html,js} -> status.{html,js}
1 parent dd2f506 commit 7f1297b

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

‎chrome-app/eventPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
chrome.app.runtime.onLaunched.addListener(function () {
1414

15-
chrome.app.window.create('serial.html', {
16-
id: "serial",
15+
chrome.app.window.create('status.html', {
16+
id: "status",
1717
innerBounds: {
1818
width: 480,
1919
height: 640,

‎chrome-app/serial.html renamed to ‎chrome-app/status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="utf-8">
66
<title>Status</title>
77
<script src="json-human/src/json.human.js"></script>
8-
<script src="serial.js"></script>
8+
<script src="status.js"></script>
99
<link rel="stylesheet" href="json-human/css/json.human.css"></link>
1010
<style>
1111
html,

‎chrome-app/serial.js renamed to ‎chrome-app/status.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@
2626
}, false);
2727

2828
getNode('disconnect-bt').addEventListener('click', function () {
29-
chrome.bluetoothSocket.close(parseInt(getNode('disconnId-bt').value), function (e) {
29+
chrome.bluetoothSocket.close(parseInt(getNode('disconnId-bt').value), function () {
3030
refreshStatusBT();
31-
if (e !== true) {
32-
alert(e + '');
33-
}
3431
});
3532
});
3633

0 commit comments

Comments
 (0)