Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
flatsiedatsie authored Jan 8, 2024
1 parent efd34d0 commit 8845d4a
Show file tree
Hide file tree
Showing 7 changed files with 157,100 additions and 27 deletions.
Binary file added audio/ping.mp3
Binary file not shown.
2 changes: 1 addition & 1 deletion css/extension.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
width:100%;
background-color:rgba(0,0,0,.1);
border-radius:1rem;
padding:1rem;
padding:1rem 2rem;
box-sizing:border-box;
}

Expand Down
7 changes: 5 additions & 2 deletions js/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@
const main_view = document.getElementById('extension-network-presence-detection-adapter-view');

if(this.content == ''){
console.error("network presence: error, content was empty");
//console.error("network presence: error, content was empty");
return;
}
else if(main_view){
main_view.innerHTML = this.content;
}
else{
console.error("network presence: erorr, view element not found");
console.error("network presence: error, view element not found");
return
}

Expand All @@ -86,6 +86,9 @@

document.getElementById('extension-network-presence-title').addEventListener('click', (event) => {
this.scan();
const music = new Audio('/extensions/network-presence-detection-adapter/audio/ping.mp3');
music.loop = false;
music.play();
});


Expand Down
5 changes: 3 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@
}
},
"short_name": "Network pres",
"version": "2.1.2",
"version": "2.1.1",
"web_accessible_resources": [
"css/*.css",
"images/*.svg",
"images/*.png",
"images/*.gif",
"audio/*.mp3",
"js/*.js",
"views/*.html"
]
}
}
Loading

0 comments on commit 8845d4a

Please sign in to comment.