ujjwalguptaofficial / JsStore

Simplifying IndexedDB with SQL like syntax and promises
http://jsstore.net/
MIT License
858 stars 110 forks source link

Error in simple example/ add.html #74

Closed Kickassbadboy closed 6 years ago

Kickassbadboy commented 6 years ago

I was using add.html for reference i am facing same problem for my project

screen shot 2018-09-12 at 12 46 25 pm

ujjwalguptaofficial commented 6 years ago

Hi

worker is not supported in file protocol. Please run the folder under a http server.

You can take a look at without worker example.

On Wed 12 Sep, 2018, 12:53 PM Yash Talegaonkar, notifications@github.com wrote:

I was using add.html for reference i am facing same problem for my project

[image: screen shot 2018-09-12 at 12 46 25 pm] https://user-images.githubusercontent.com/7989070/45408680-b698a800-b68a-11e8-8c53-8d58295b9b1a.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ujjwalguptaofficial/JsStore/issues/74, or mute the thread https://github.com/notifications/unsubscribe-auth/AKbo92j8mxcLZakGFjjIQnRq0haYVvmLks5uaLZegaJpZM4Wkyna .

Kickassbadboy commented 6 years ago

Thank you i am able to do it without worker . Can i know why it doesn't work with worker. ?

ujjwalguptaofficial commented 6 years ago

some browsers like chrome does not allow worker to run with file protocol as its not the web protocol. The http is the real protocol.

I think firefox support worker in file protocol too.

On Wed 12 Sep, 2018, 1:21 PM Yash Talegaonkar, notifications@github.com wrote:

Thank you i am able to do it without worker . Can i know why it doesn't work with worker. ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ujjwalguptaofficial/JsStore/issues/74#issuecomment-420548641, or mute the thread https://github.com/notifications/unsubscribe-auth/AKbo95kMqUtvplZAJlPPdpOfh8mlMFMgks5uaL0HgaJpZM4Wkyna .

Kickassbadboy commented 6 years ago

i tried in safari for worker and without worker , it does not run any reason behind it or safari's error ?

Kickassbadboy commented 6 years ago

screen shot 2018-09-12 at 1 36 19 pm

why is it stating "slow network detected"

ujjwalguptaofficial commented 6 years ago

console warning "slow network detected" is thrown by chrome for some reason. May be they are working on something. Its not part of jsstore.

If you are developing something, please create a http server and run the project inside that server. You can use the package - https://www.npmjs.com/package/http-server. This is what i use for my development purpose.