MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / reload

Function reload

popup/index.js:924–941  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

922}
923
924function reload() {
925 Swal.fire({
926 icon: "warning",
927 title: t({
928 vi: "Khởi động lại tiện ích?",
929 en: "Reload extension?",
930 }),
931 text: t({
932 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.",
933 en: "Autorun scripts will be disconnected => you have to reload websites.",
934 }),
935 showCancelButton: true,
936 confirmButtonText: t({ vi: "Khởi động lại", en: "Reload" }),
937 cancelButtonText: t({ vi: "Huỷ", en: "Cancel" }),
938 }).then((res) => {
939 if (res.isConfirmed) chrome.runtime.reload();
940 });
941}
942
943async function backup() {
944 trackEvent("BACKUP");

Callers

nothing calls this directly

Calls 1

tFunction · 0.90

Tested by

no test coverage detected