Commit da5c0414 authored by SerHack's avatar SerHack
Browse files

Update script.js

parent 6027b660
// Script for reading, writing NFC tags.
if (!('NDEFReader' in window)) {
console.log("NFC reading not supported");
alert('NFC not enabled');
}
// part for writing
function writeNFC(message){
......@@ -11,3 +12,6 @@ function writeNFC(message){
console.log(`Write failed :( try again: ${error}.`);
});
}
var message = "hello world";
writeNFC(message);
\ No newline at end of file
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