-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprivate_dot_finicky.js
36 lines (36 loc) · 1.06 KB
/
private_dot_finicky.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// TODO: Look into containers support for this: https://github.com/johnste/finicky/issues/211
module.exports = {
defaultBrowser: "Firefox",
options: {
hideIcon: false,
checkForUpdate: true,
},
handlers: [
{
match: ({ url, urlString }) => {
finicky.log("Received URL " + urlString);
return url.host === "apple.com";
},
browser: "Safari"
},
{
match: ({ opener }) => !opener.path && !opener.name && !opener.bundleId,
browser: "Browserosaurus"
},
{
// You can get the path of the process that triggered Finicky (EXPERIMENTAL)
match: ({ opener }) => {
return opener.path && (
opener.path.startsWith("/Applications/iTerm.app") ||
opener.path.startsWith("/Applications/Slack.app")
)
},
browser: "Browserosaurus"
},
{
// You can get the path of the process that triggered Finicky (EXPERIMENTAL)
match: ({ opener }) => opener.path && opener.path.startsWith("/Applications/SketchUp"),
browser: "Browserosaurus"
},
]
};