Skip to content

Commit

Permalink
rebuild notes plugin when html changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Feb 28, 2022
1 parent c47bf21 commit c83c685
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ gulp.task('serve', () => {

gulp.watch(['js/**'], gulp.series('js', 'reload', 'eslint'))

gulp.watch(['plugin/**/plugin.js'], gulp.series('plugins', 'reload'))
gulp.watch(['plugin/**/plugin.js', 'plugin/**/*.html'], gulp.series('plugins', 'reload'))

gulp.watch([
'css/theme/source/*.{sass,scss}',
Expand Down
2 changes: 1 addition & 1 deletion plugin/notes/notes.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin/notes/notes.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion plugin/notes/speaker-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ <h4 class="label">Notes</h4>

window.addEventListener( 'message', function( event ) {

if (window.location.origin !== event.origin){
// Ignore post messages from other origins to prevent XSS
if( window.location.origin !== event.origin ){
return;
}

Expand Down

0 comments on commit c83c685

Please sign in to comment.