Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Commit

Permalink
Fix query parameter issue in notes plugin.
Browse files Browse the repository at this point in the history
Closes hakimel#1392.
  • Loading branch information
bnjmnt4n committed Mar 6, 2016
1 parent d92160e commit 4e4b76a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/notes/notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,10 @@ <h4 class="label">Notes</h4>
'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 );
Expand Down

0 comments on commit 4e4b76a

Please sign in to comment.