Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions finicky/finicky.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const workUrls = [
"www.cursor.com",
];

const peronalUrls = ["github.com"];

const workOrgUrls = {
"admin.atlassian.com": [
"907bakbd-da41-19ab-k502-2c857bj2kd6b",
Expand All @@ -57,7 +59,6 @@ const workOrgUrls = {
"dashboard.heroku.com": "/botpress-internal/",
"depot.dev": "w8z3zskrwb",
"dnsimple.com": "/78774/",
"github.com": "/botpress/",
"grafana.com": "botpress",
"groups.google.com": "botpress.com",
"huggingface.co": "/botpress-hq/",
Expand Down Expand Up @@ -116,6 +117,18 @@ const workUrl = ({ url }) => {
return false;
};

const personalUrl = ({ url }) => {
if (url.username === "personal") {
return true;
}

if (peronalUrls.includes(url.host)) {
return true;
}

return false;
};

export default {
defaultBrowser,
options: {
Expand All @@ -124,7 +137,7 @@ export default {
},
handlers: [
{
match: ({ url }) => url.username === "personal",
match: ({ url }) => personalUrl({ url }),
browser: defaultBrowser,
},
{
Expand Down