Skip to content

Commit

Permalink
With embedded iframes dont add 'javascript:' entries to 'history' - f…
Browse files Browse the repository at this point in the history
…ixes back button with 'Visual Statistics' plugin.
  • Loading branch information
CDrummond committed Oct 9, 2021
1 parent bb25bdf commit f58f5fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
players' dialogs.
16. Add player icon mapping for HTTP and Alexa.
17. Remove note stating iPhone does not support drag'n'drop.
18. With embedded iframes dont add 'javascript:' entries to 'history' - fixes
back button with 'Visual Statistics' plugin.

2.6.3
-----
Expand Down
3 changes: 3 additions & 0 deletions MaterialSkin/HTML/material/html/js/iframe-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,9 @@ Vue.component('lms-iframe-dialog', {
this.loaded = true;
}.bind(this));
bus.$on('iframe-href', function(ref, addToHistory) {
if (ref.startsWith("javascript:")) {
return;
}
if (undefined==addToHistory || addToHistory) {
this.history.push(this.src);
}
Expand Down

0 comments on commit f58f5fd

Please sign in to comment.