()
| 1973 | } |
| 1974 | |
| 1975 | function sendStopAutoImportRequest() { |
| 1976 | console.log("[Auto Import Stop] Sending stop request."); |
| 1977 | showSuccessAnimation("Stopping Import...", ".sucessCheck"); |
| 1978 | chrome.runtime.sendMessage({ action: "stopAutoImport" }, (response) => { |
| 1979 | if (chrome.runtime.lastError) { |
| 1980 | console.error( |
| 1981 | "[Auto Import Stop] Error sending stopAutoImport:", |
| 1982 | chrome.runtime.lastError.message |
| 1983 | ); |
| 1984 | return; |
| 1985 | } |
| 1986 | console.log("[Auto Import Stop] stopAutoImport response:", response); |
| 1987 | }); |
| 1988 | } |
| 1989 | |
| 1990 | function ensureAutoImportStopClickListener() { |
| 1991 | if (!UI.importBtn) return; |
no test coverage detected