Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
fix: do not render on drive.google.com (only docs.google.com)
Browse files Browse the repository at this point in the history
  • Loading branch information
rofe committed Oct 20, 2021
1 parent a2060da commit 43c903c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/extension/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ export function getConfigMatches(configs, tabUrl) {
// sharepoint, check for site name in path
const site = encodeURIComponent(mpPath.split('/')[2]);
return new URL(tabUrl).pathname.includes(`/sites/${site}/`);
} else {
return true;
} else if (checkHost === 'drive.google.com') {
// gdrive, but do not render on drive.google.com
return false;
}
}
if (checkHost === 'docs.google.com' && mpHost === 'drive.google.com') {
// gdrive, for now host matching only
} else if (checkHost === 'docs.google.com' && mpHost === 'drive.google.com') {
// gdrive, render on docs.google.com
return true;
}
return false;
Expand Down

0 comments on commit 43c903c

Please sign in to comment.