Fix query parameter issue in notes plugin.

Closes #1392.
edit
Benjamin Tan 2016-03-06 18:28:08 +08:00
parent 0eb2d81f35
commit 6d0b52026a
1 changed files with 3 additions and 2 deletions

View File

@ -288,9 +288,10 @@
'backgroundTransition=none' 'backgroundTransition=none'
].join( '&' ); ].join( '&' );
var urlSeparator = /?/.test(data.url) ? '&' : '?';
var hash = '#/' + data.state.indexh + '/' + data.state.indexv; var hash = '#/' + data.state.indexh + '/' + data.state.indexv;
var currentURL = data.url + '?' + params + '&postMessageEvents=true' + hash; var currentURL = data.url + urlSeparator + params + '&postMessageEvents=true' + hash;
var upcomingURL = data.url + '?' + params + '&controls=false' + hash; var upcomingURL = data.url + urlSeparator + params + '&controls=false' + hash;
currentSlide = document.createElement( 'iframe' ); currentSlide = document.createElement( 'iframe' );
currentSlide.setAttribute( 'width', 1280 ); currentSlide.setAttribute( 'width', 1280 );