diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2016-03-07 08:53:27 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2016-03-07 08:53:27 +0100 |
commit | db46896613ddc935b4a732fb7e9be56bd5c7bcd6 (patch) | |
tree | 047c0c1976aac6bda99b198f7df849dc106f576b /plugin | |
parent | e3d681e7c6a252a5f4b5c4a9c36198d7b8e90fbb (diff) | |
parent | 6d0b52026a773559407a452b94f8ab60d80aac1e (diff) | |
download | fosdem-2018-presentation-db46896613ddc935b4a732fb7e9be56bd5c7bcd6.tar fosdem-2018-presentation-db46896613ddc935b4a732fb7e9be56bd5c7bcd6.tar.gz |
Merge pull request #1522 from demoneaux/notes-fix
Fix query parameter issue in notes plugin.
Diffstat (limited to 'plugin')
-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 ); |