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

Commitc70b1bc

Browse files
committed
Update webnfc
1 parentb7cf30f commitc70b1bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎webnfc.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,16 @@ document.getElementById('scan').addEventListener("click", async () => {
4545
log(" Encoding: "+record.encoding);
4646
switch(record.recordType){
4747
case"text":
48-
text=newTextDecoder(record.encoding).decode(record.data);
48+
text=newTextDecoder().decode(record.data);
4949
log(` Text:${text} (${record.lang})`);
5050
break;
5151
case"url":
52-
log(" IsUrl");
5352
consturl=newTextDecoder().decode(record.data);
5453
log(" Url: "+url);
5554
if(url==myUrl)matchedUrl=true;
5655
break;
56+
default:
57+
log(" Unknown record type");
5758
}
5859
}
5960
if(matchedUrl){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp