| 922 | } |
| 923 | |
| 924 | function 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 | |
| 943 | async function backup() { |
| 944 | trackEvent("BACKUP"); |