diff --git a/content_script.js b/content_script.js index 6c198a0..be8b89c 100644 --- a/content_script.js +++ b/content_script.js @@ -105,12 +105,11 @@ function processFileDiff(fileDiffElement) { } function applySyntaxHighlighting() { - // Only apply highlighting if we're on a PR page - if (!window.location.href.includes('/_git/') || !window.location.href.includes('/pullrequest/')) { + if (!window.location.href.includes('/_git/')) { return; } - console.log("ADO Syntax Highlighter: Applying..."); + console.debug("ADO Syntax Highlighter: Applying..."); const fileDiffPanels = document.querySelectorAll('.repos-summary-header'); fileDiffPanels.forEach(fileDiffPanel => { @@ -118,7 +117,7 @@ function applySyntaxHighlighting() { }); } -console.log("ADO Syntax Highlighter: Content script loaded."); +console.debug("ADO Syntax Highlighter: Content script loaded."); // Initial run applySyntaxHighlighting(); diff --git a/manifest.json b/manifest.json index 9c91693..e9d04c4 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "$schema": "https://json.schemastore.org/chrome-manifest", "manifest_version": 3, "name": "Azure DevOps PR Syntax Highlighter", - "version": "0.1.1", + "version": "0.2.0", "description": "Adds syntax highlighting to partial file diffs in Azure DevOps Pull Requests.", "icons": { "16": "assets/icons/icon16.png",