OnAttached.purs 379 B

1234567891011121314
  1. module Browser.Tabs.OnAttached where
  2. import Browser.Tabs (TabId, WindowId)
  3. import Browser.Utils (Listener2)
  4. import Data.Unit (Unit)
  5. import Effect (Effect)
  6. type AttachInfo = {
  7. newWindowId :: WindowId,
  8. newPosition :: Int
  9. }
  10. foreign import addListener :: (Listener2 TabId AttachInfo) -> Effect Unit
  11. foreign import removeListener :: (Listener2 TabId AttachInfo) -> Effect Unit