aurelia / tools

Tools and utility functions used to build and develop Aurelia's libraries.
MIT License
37 stars 32 forks source link

Chrome extension not working from within a Chrome extension #40

Closed alexdresko closed 8 years ago

alexdresko commented 8 years ago

Some Inception-type stuff happening here.

I have a Chrome extension that uses Aurelia, and I'm trying to get the Aurelia Chrome extension to help me create my own extension. However, the current Aurelia Chrome extension does not work if I inspect my own Chrome extension.

Long story short, the current Aurelia extension initially fails because $0 is undefined in devtools.js. I got around that problem (let me know if you're interested), but quickly ran up against another. For whatever reason, even though my Chrome extension works, the Aurelia extension cannot find a .au property on any DOM element.

Is there another way to retrieve the .au property and/or data? Does that make sense?

I put a lot of time today into trying to figure this out and I feel like I'm close to making it work. Just have to go to sleep and I'm stuck.

alexdresko commented 8 years ago

The only way I can see this working is if it is if page_getProperties gets moved to a content script.

Any thoughts on that?

I don't want to ramble on for too long about this issue until someone else confirms my sanity or lack thereof.

EisenbergEffect commented 8 years ago

@sylvain-hamel Do you have any thoughts on this?

sylvain-hamel commented 8 years ago

No I don't. Sorry.

EisenbergEffect commented 8 years ago

@alexdresko Any further ideas on how we can improve things for your scenario?

alexdresko commented 8 years ago

@EisenbergEffect I haven't had anymore time to look at it, unfortunately. I sorta got disappointed after all the experimenting I tried to get it to work and temporarily gave up on the project I was working on. Also kinda had to move on to another project.

If you want to close this out, that's fine. I'll eventually get back to that Chrome plugin + TS + Aurelia project and may dig into this issue further at the time. I'll just come back to this issue when I get there.

Thanks for following up. You're one of the best OSS project managers out there. You and @jerrynixon :)

EisenbergEffect commented 8 years ago

@alexdresko Thanks friend! I'll close this out for now. If at anytime you want to get working on tooling again, ping us and we'll help out however we can.