• Community
    • Community
    • Vivaldi Social
    • Blogs
  • Forum
    • Vivaldi Forum
    • Categories
    • Recent
    • Popular
  • Themes
    • Vivaldi Themes
    • My Themes
    • FAQ
  • Contribute
    • Contribute
    • Volunteer
    • Donate
  • Browser
    • Vivaldi Browser
    • Latest News
    • Snapshots
    • Help
Register Login

Vivaldi

  • Community
  • Themes
  • Contribute
  • Browser

Navigation

    • Home
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Desktop
    3. Archive
    4. Help Developing in Web Panels

    Help Developing in Web Panels

    Scheduled Pinned Locked Moved Archive
    web panels
    5 Posts 4 Posters 506 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • code3
      C
      code3
      last edited by A Former User

      1. Why are JavaScript alerts not showing in web panels?
      2. What event to listen for to know when the web panel is opened?

      Thank you!

      --
      ModEdit: Moved from Support

      nomadic
      N
      1 Reply Last reply
      Reply Quote 0
    • code3
      C
      code3
      last edited by

      This isn’t really a modification question, it’s an extension question. But maybe the people here would be better able to help.

      ?
      1 Reply Last reply
      Reply Quote 0
    • ?
      A Former User @code3
      last edited by

      @code3 But I think (think not know) that it is only possible / much easier with mods – you can just watch the PANEL_STATE (or what was it) in the storage & prolly inject a script.

      I don’t know about the alerts.

      code3
      C
      1 Reply Last reply
      Reply Quote 1
    • code3
      C
      code3 @Guest
      last edited by

      @potmeklecbohdan I’m making an extension, not a mod. I guess the alternative is to update automatically by broadcasting events.

      1 Reply Last reply Reply Quote 0
    • nomadic
      N
      nomadic Soprano @code3
      last edited by nomadic

      @code3 said in Help Developing in Web Panels:

      1. What event to listen for to know when the web panel is opened?

      This fires on panel opening but not closing:

      window.addEventListener('resize', () => {
            console.log("Panel opened...");
          });
      

      As long as you don't need to worry about detecting closing as well, then that should work.

      There is also this to check out:
      https://developer.mozilla.org/en-US/docs/Web/API/Resize_Observer_API

      1 Reply Last reply Reply Quote 2
    • pafflick
      P
      pafflick moved this topic from Extensions on
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    • 1 / 1
    • First post
      Last post

    Copyright © Vivaldi Technologies™ — All rights reserved. Privacy Policy | Code of conduct | Terms of use | Vivaldi Status