aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 );