INNER CODE UNIT · JavaScript

reload

Useful-Scripts-Extension/useful-script · popup/index.js:935

function reload() {
  Swal.fire({
    icon: "warning",
    title: t({
      vi: "Khởi động lại tiện ích?",
      en: "Reload extension?",
    }),
    text: t({
      vi: "Các chức năng tự chạy sẽ mất kết nối, gây lỗi => cần tải lại các trang web để hoạt động trở lại.",
      en: "Autorun scripts will be disconnected => you have to reload websites.",
    }),
    showCancelButton: true,
    confirmButtonText: t({ vi: "Khởi động lại", en: "Reload" }),
    cancelButtonText: t({ vi: "Huỷ", en: "Cancel" }),
  }).then((res) => {
    if (res.isConfirmed) chrome.runtime.reload();
  });
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…