Skip to content

Commit ebd148c

Browse files
committed
fix(demo): fixed scope in the demo
1 parent 55d97bf commit ebd148c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
[![Build status][bottle-service-ci-image] ][bottle-service-ci-url]
77
[![semantic-release][semantic-image] ][semantic-url]
88

9-
[Live demo](https://bottle-service.herokuapp.com/) - might be asleep on Heroku,
10-
wait 10 seconds to start, please use Chrome Desktop for now
9+
[Live demo](https://glebbahmutov.com/bottle-service/) - please use Chrome or Opera Desktop
1110

1211
[Instant app demo](https://instant-todo.herokuapp.com/) - TodoMVC that is instant on
13-
page reload, also hosted on Heroku, and needs Chrome browser for now
12+
page reload, hosted on free Heroku dyno, and needs Chrome browser for now
1413

1514
![page source](page-source.png)
1615

dist/bottle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939

4040
var serviceScriptUrl = getCurrentScriptFolder() + 'bottle-service.js'
41-
var scope = '/'
41+
var scope = window.location.pathname
4242

4343
var send = function mockSend () {
4444
console.error('Bottle service not initialized yet')

src/bottle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
}
3939

4040
var serviceScriptUrl = getCurrentScriptFolder() + 'bottle-service.js'
41-
var scope = '/'
41+
var scope = window.location.pathname
4242

4343
var send = function mockSend () {
4444
console.error('Bottle service not initialized yet')

0 commit comments

Comments
 (0)