diff --git a/src/content_scripts/protoots.js b/src/content_scripts/protoots.js index bb79779..dc83ac7 100644 --- a/src/content_scripts/protoots.js +++ b/src/content_scripts/protoots.js @@ -241,7 +241,8 @@ async function addProplate(element) { //if we couldn't get an id from the div try the closest article id = element.closest("article[data-id]")?.dataset.id; } - return id.replace("f-", ""); + if (id) id = id.replace("f-", ""); + return id; } /**