Properly check if a url match is a project / repository

This commit is contained in:
Rohid
2024-08-26 16:11:15 +06:00
parent 410ccc0f78
commit 3d1038de01
17 changed files with 242 additions and 77 deletions

View File

@@ -83,3 +83,9 @@ document.body.addEventListener(
debounce(() => init()),
true,
);
chrome.runtime.onMessage.addListener((request: { message: string }, sender, sendResponse) => {
if (request.message === 'get_html') {
sendResponse({ html: document.documentElement.outerHTML });
}
});