INNER CODE UNIT · JavaScript
restore
Useful-Scripts-Extension/useful-script · popup/index.js:965
async function restore() {
const { checkPass } = await import("../scripts/auto_lockWebsite.js");
if (
!(await checkPass(
t({
vi: " chức năng Tự động khoá trang web",
en: " feature Auto lock websites",
}),
))
)
return;
const result = await Swal.fire({
title: t({ en: "Restore data", vi: "Khôi phục dữ liệu" }),
text: t({ en: "Select file to restore", vi: "Chọn file để khôi phục" }),
input: "file",
inputAttributes: {
accept: ".json",