(msg, decline_msg = "")
| 77 | } |
| 78 | |
| 79 | async function menuAlert(msg, decline_msg = "") { |
| 80 | await sleep(400); |
| 81 | chrome.runtime.sendMessage({ |
| 82 | type: "coursedump_alert", |
| 83 | msg |
| 84 | }).catch(err=>{ |
| 85 | if (decline_msg) { |
| 86 | console.log(decline_msg); |
| 87 | } |
| 88 | }); |
| 89 | } |
| 90 | |
| 91 | function updAllMenus() { |
| 92 | chrome.runtime.sendMessage({ |