Skip to content

Commit c83c685

Browse files
committed
rebuild notes plugin when html changes
1 parent c47bf21 commit c83c685

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ gulp.task('serve', () => {
298298

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

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

303303
gulp.watch([
304304
'css/theme/source/*.{sass,scss}',

plugin/notes/notes.esm.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/notes/notes.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/notes/speaker-view.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ <h4 class="label">Notes</h4>
368368

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

371-
if (window.location.origin !== event.origin){
371+
// Ignore post messages from other origins to prevent XSS
372+
if( window.location.origin !== event.origin ){
372373
return;
373374
}
374375

0 commit comments

Comments
 (0)