3

How can I refresh the content of a safari extensions popover, so that everything in the window is loaded over?

If you're interested in relation to what, I need the content to reload everytime the tabbar icon is clicked, so that multiple tabs do not share the same popover.

Jakob
  • 4,784
  • 8
  • 53
  • 79

1 Answers1

7

You can use window.location.reload() from the context of the popover, or safari.extension.popovers[0].contentWindow.location.reload() (assuming it's the first popover) from the context of the global page.

chulster
  • 2,809
  • 15
  • 14
  • yup - that's exactly what I needed, especially the second line was really useful to me :) – Jakob Oct 30 '11 at 23:30