diff options
author | Benjamin Tan | 2016-03-06 18:28:08 +0800 |
---|---|---|
committer | Benjamin Tan | 2016-03-06 18:28:08 +0800 |
commit | 6d0b52026a773559407a452b94f8ab60d80aac1e (patch) | |
tree | 143c923165ce1302e30ad498087d8c522ddb4ed0 /plugin/notes | |
parent | 0eb2d81f351478b0625cb61838dc36baf2170aec (diff) |
Fix query parameter issue in notes plugin.
Closes #1392.
Diffstat (limited to 'plugin/notes')
-rw-r--r-- | plugin/notes/notes.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 75f1b9b..d0d88dc 100644 --- a/plugin/notes/notes.html +++ b/plugin/notes/notes.html @@ -288,9 +288,10 @@ 'backgroundTransition=none' ].join( '&' ); + var urlSeparator = /?/.test(data.url) ? '&' : '?'; var hash = '#/' + data.state.indexh + '/' + data.state.indexv; - var currentURL = data.url + '?' + params + '&postMessageEvents=true' + hash; - var upcomingURL = data.url + '?' + params + '&controls=false' + hash; + var currentURL = data.url + urlSeparator + params + '&postMessageEvents=true' + hash; + var upcomingURL = data.url + urlSeparator + params + '&controls=false' + hash; currentSlide = document.createElement( 'iframe' ); currentSlide.setAttribute( 'width', 1280 ); |