gabrielmoreira / riot-router

Riot Router - A simple routing solution for Riot
MIT License
77 stars 13 forks source link

Riot-router does not work in Chrome browser #20

Closed AlexRadch closed 9 years ago

AlexRadch commented 9 years ago

It works in Firefox browser. It does not work in Chrome browser. Open example in both browsers http://plnkr.co/edit/OAnEIBi9SwYgTSQDeGp8?p=preview

gabrielmoreira commented 9 years ago

@AlexRadch , raw.githubcontent is serving files with content-type text/plain. just change from

<script src="https://raw.githubusercontent.com/gabrielmoreira/riot-router/master/lib/router.min.js"></script>

to

<script src="http://gabrielmoreira.github.io/riot-router/examples/node_modules/riot-router/lib/router.min.js"></script>
AlexRadch commented 9 years ago

@gabrielmoreira, thank you!

I found https://rawgit.com/ and I just replace https://raw.githubusercontent.com/gabrielmoreira/riot-router/master/lib/router.min.js with https://rawgit.com/gabrielmoreira/riot-router/master/lib/router.min.js