INNER CODE UNIT · JavaScript
showError
Useful-Scripts-Extension/useful-script · popup/index.js:562
function showError(e) {
Swal.fire({
icon: "error",
title: t({ vi: "Lỗi", en: "Error" }),
text: e?.message || "",
input: "textarea",
inputValue: JSON.stringify(e, null, 4),
});
}
function checkIsPreview(script) {
if (
location.hostname === "useful-scripts-extension.github.io" ||
location.hostname === "hoangtran0410.github.io" ||
location.hostname === "127.0.0.1"
) {
trackEvent("CLICK_PREVIEW_" + script.id);
Swal.fire({