network (namespace of @fkn/lib)
Functions
Section titled “Functions”request()
Section titled “request()”function request(hosts): Promise<boolean>;Asks the person, with one card from fkn.app, to let this app reach hosts: host names, *.name, or
"<all_urls>" for any site. True once every one is allowed, and from a broker that applies no
network rule; false on Not now, for a list off the grammar, or where fkn.app cannot show a card.
A fetch() or asynchronous XMLHttpRequest uses the answer at once; images, styles, frames and sockets from
the app’s next load.
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”Promise<boolean>