Skip to content

Commit

Permalink
Merge pull request #53 from grafana/malcolmholmes/support-vscodium
Browse files Browse the repository at this point in the history
Support VSCodium
  • Loading branch information
malcolmholmes authored Nov 2, 2023
2 parents 1adae09 + fb38a15 commit ad66a61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "Grafana",
"description": "Grafana Editor",
"icon": "public/grafana_icon.png",
"version": "0.0.8",
"version": "0.0.9",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export function detectRequestSource(
) {
const userAgent = req.headers["user-agent"];

if (userAgent?.includes("Code") && userAgent?.includes("Electron")) {
if ((userAgent?.includes("Code") || userAgent?.includes("code"))
&& userAgent?.includes("Electron")) {
next();
} else {
res.status(403).send("Access Denied");
Expand Down

0 comments on commit ad66a61

Please sign in to comment.