Commit a5e7c887 authored by SerHack's avatar SerHack
Browse files

Update script.js

parent da5c0414
...@@ -7,9 +7,9 @@ if (!('NDEFReader' in window)) { ...@@ -7,9 +7,9 @@ if (!('NDEFReader' in window)) {
function writeNFC(message){ function writeNFC(message){
const writer = new NDEFWriter(); const writer = new NDEFWriter();
writer.write(message).then(() => { writer.write(message).then(() => {
console.log("Message written."); alert("Message written.");
}).catch(error => { }).catch(error => {
console.log(`Write failed :( try again: ${error}.`); alert(`Write failed :( try again: ${error}.`);
}); });
} }
......
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