Files
hollywoo-sourcer/externs/webextension_polyfill/manifest/ProtocolHandler.hx

22 lines
776 B
Haxe

package webextension_polyfill.manifest;
/**
Represents a protocol handler definition.
**/
typedef ProtocolHandler = {
/**
A user-readable title string for the protocol handler. This will be displayed to the user in interface objects as needed.
**/
var name : String;
/**
The protocol the site wishes to handle, specified as a string. For example, you can register to handle SMS text message
links by registering to handle the "sms" scheme.
**/
var protocol : String;
/**
The URL of the handler, as a string. This string should include "%s" as a placeholder which will be replaced with the
escaped URL of the document to be handled. This URL might be a true URL, or it could be a phone number, email address,
or so forth.
**/
var uriTemplate : String;
};