jomarko commented on code in PR #2126:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2126#discussion_r1463161766


##########
packages/chrome-extension/src/index.ts:
##########
@@ -91,37 +91,66 @@ function init(globals: Globals) {
   const fileInfo = extractFileInfoFromUrl();
   const pageType = discoverCurrentGitHubPageType();
 
+  if (!globals.dependencies.all.octiconMarkGitHub()) {
+    globals.logger.warn("This is not the GitHub web page.");
+    return;
+  }

Review Comment:
   if there is no github icon on the page, we are sure user is not browsing 
github web page



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to