pouchdb / pouchdb-fauxton-chrome-extension

Unmaintained: see #17
26 stars 6 forks source link

not working although window.PouchDB is set #8

Open barbalex opened 9 years ago

barbalex commented 9 years ago

This tool has worked for quite a while for me now. Thanks A LOT!

Then I did not need to look it up for a few days. And now, when opening it, I get this message:

No PouchDB found
To use the current page with PouchDB-Fauxton, window.PouchDB needs to be set.

But I have set:

window.PouchDB

And when I type this in the console I get:

function PouchDB(name, opts, callback)

I tried this:

enlore commented 9 years ago

Same here. window.PouchDB is there, but Fauxton is showing the No PouchDB found error. I'm very unfamiliar with Chrome Extension dev, so let me know if I can do anything to provide debug info. I'm doing my own research in the mean time and will post a log or something if I can figure out how to make one.

marten-de-vries commented 9 years ago

Thanks for reporting. I can't reproduce this myself, but it might be possible to get more debug info by going to chrome://extensions/ , enabling debug mode, and clicking on either 'errors' or 'background page' and then 'console'.

enlore commented 9 years ago

Cool. Here's what I found:

screen shot 2015-09-01 at 1 44 24 pm

Let me know if you want text transcripts.

Also, since posting, my Fauxton has started working for me. It actually started working as soon as I enabled Developer mode. If that's in the docs and I just didn't see it, pardon me.

barbalex commented 9 years ago

yep, same here:

2015-09-01_21h21_08

And also, since clicking on 'background page' Fauxton is working again.

marten-de-vries commented 9 years ago

Interesting, I never switch dev mode off. I'm glad there's a workaround, but this is still worth tracking down. Will look into it later.

The errors you both give are harmless as far as I know. But it might be that when not in dev mode the plugin crashes on it. Thanks for the extra info!

enlore commented 9 years ago

:+1: