Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4fb92a7

Browse files
committed
update webNfc
1 parent388c5c8 commit4fb92a7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎webnfc.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<buttonid="init">Initialize card</button>
1717
<buttonid="scan">Scan and update</button>
1818
<buttonid="abort">Stop scanning</button>
19-
<preid="log"></pre>
19+
<preid="log"></pre>
2020
<scriptsrc="webnfc.js"></script>
2121
</body>
2222
</html>

‎webnfc.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ abortController.signal.onabort = event => {
1313
};
1414

1515
document.getElementById("abort").onclick=event=>{
16-
if(abortController)
16+
if(abortController){
1717
abortController.abort();
18+
abortController=null;
19+
}
1820
};
1921

2022
document.getElementById('init').addEventListener("click",async()=>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp