Module
WebExtension.Polyfill
- Package
- purescript-webextension-polyfill
- Repository
- rowtype-yoga/purescript-webextension-polyfill
#browserImpl Source
browserImpl :: Type
#LocalStorage Source
data LocalStorage
#loadFromLocalStorage Source
loadFromLocalStorage :: forall a. ReadForeign a => StorageKey -> Aff (Maybe a)
#saveInLocalStorage Source
saveInLocalStorage :: forall a. WriteForeign a => StorageKey -> a -> Aff Unit
#sendMessageViaPort Source
sendMessageViaPort :: forall msg. WriteForeign msg => msg -> Port -> Effect Unit
#ConnectOptions Source
type ConnectOptions :: Row Type
type ConnectOptions = (name :: String)
#connectToBackgroundScriptImpl Source
connectToBackgroundScriptImpl :: forall opts. EffectFn1 (Record opts) Port
#connectToBackgroundScript Source
connectToBackgroundScript :: forall opts missing. Union opts missing ConnectOptions => Record opts -> Effect Port
#BrowserHistory Source
data BrowserHistory
#addOnVisitedListenerImpl Source
addOnVisitedListenerImpl :: (EffectFn1 Foreign Unit) -> BrowserHistory -> Effect Unit
#addOnVisitedListener Source
addOnVisitedListener :: (HistoryItem -> Effect Unit) -> BrowserHistory -> Effect Unit