Commit 51dd67e0 authored by SerHack's avatar SerHack
Browse files

Update script.js

parent a5e7c887
// Script for reading, writing NFC tags.
if (!('NDEFReader' in window)) {
/* if (!('NDEFReader' in window)) {
console.log("NFC reading not supported");
alert('NFC not enabled');
} */
// part for writing
function writeNFC(message){
const writer = new NDEFWriter();
writer.write(message).then(() => {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment