Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Finicky

These are the methods available on the globally available finicky object.

Index

Properties

Properties

log

log: function

Log a message to the Finicky console

Type declaration

    • (message: string): void
    • Parameters

      • message: string

      Returns void

matchDomains

matchDomains: function

Create a function to match domains easier.

Example:

 modules.exports = {
   handlers: [{
     match: finicky.matchDomains([/example\.(org|com)$/, "github.com"]),
     browser: "Firefox"
   }]
 }

Type declaration

    • Parameters

      • domains: string | RegExp | Array<string | RegExp>

      Returns MatcherFunction

notify

notify: function

Show an app notification

Example:

 let numFacebookVisits = 0;
 modules.exports = {
   handlers: [{
     match: ({url}) => {
       return url.host === "facebook.com";
     },
     browser: () => {
       finicky.notify("Facebook again?", `That's ${++numFacebookVisits} too many!`);
       return "Firefox"
     }
   }]
 }

Type declaration

    • (title: string, subtitle?: undefined | string): void
    • Parameters

      • title: string
      • Optional subtitle: undefined | string

      Returns void

Generated using TypeDoc