aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2016-03-07 08:53:27 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2016-03-07 08:53:27 +0100
commitdb46896613ddc935b4a732fb7e9be56bd5c7bcd6 (patch)
tree047c0c1976aac6bda99b198f7df849dc106f576b
parente3d681e7c6a252a5f4b5c4a9c36198d7b8e90fbb (diff)
parent6d0b52026a773559407a452b94f8ab60d80aac1e (diff)
downloadfosdem-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.
-rw-r--r--plugin/notes/notes.html5
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 );