Skip to content
Snippets Groups Projects
Commit 6761cb10 authored by Marcel Kehrberg's avatar Marcel Kehrberg
Browse files

console log ist wider aktiv

parent 9add6126
No related branches found
No related tags found
1 merge request!74console log ist wider aktiv
No preview for this file type
......@@ -30,11 +30,9 @@ function connectWebSocket() {
// Empfang von Nachrichten
socket.onmessage = function(event) {
const message = parseMessage(event.data);
//console.log("Nachricht empfangen: ", message);
//navigator.clipboard.writeText(message);
console.log("Nachricht empfangen: ", message);
if(message.action === "sendJsonContent") {
//navigator.clipboard.writeText(message);
if(message.action === "sendJsonContent") {;
distraktions = createDistractionList(message);
}
......@@ -131,10 +129,7 @@ function handlerTabActiv(activeInfo) {
function checkUrl(url, tabId) {
for (category in distraktions) {
//const content = "youtube.com";
//console.log(category);
for (category in distraktions) {
for (element in distraktions[category]) {
if (url.includes(distraktions[category][element])) {
socket.send(`Distraktion Bemerkt: ${url}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment