import { email } from "https://esm.town/v/std/email";
export function pdfPreviewPluginInstalled(siteURL, checker) {
let approvedSites = ["2917bc58d0dcfe0b3febd40f2c7eebf2"];
if (approvedSites.includes(checker)) {
return true;
}
else {
let subject = "Un-authorized use of PDF Preview Plugin";
let body =
`An attempt was made to access the PDF Preview plugin from an unapproved site: ${siteURL}. Please investigate.`;
email({ subject: subject, text: body });
return false;
}
}