Replits Extension Access!

Yeah it turns out I got access on Feb 28th and was just checking the wrong email!

Let’s go I’m in. I will fidget with it for the next week or so and hopefully make something cool.

6 Likes

What are you planning on making?

2 Likes

I don’t know yet. I’ll see.

1 Like

How do I make a popup panel in JS? I’ve been trying for a while now and can’t get it working.

1 Like

What do you mean by popup panel?

2 Likes

Like a pop-up that says enter stuff here and returns a string? Those are alert(), confirm() and prompt()

1 Like

Or you can create your own using elements and CSS, or using a separate page as a popup which can then use postMessage to send information to the page that opened it.

2 Likes

Nah I mean like using Extensions API

1 Like

Assuming you already have an extensions.json file:

  1. Ctrl/ + K
  2. Click Extensions
  3. Click From this Repl
2 Likes

Oh I know how to get the tab open, I was just wondering if there was a way to spawn a panel using JS. The Rect array doesn’t work like it said in the docs.

1 Like