Browse Source

rebuild notes plugin when html changes

hakimel 3 years ago
parent
commit
c83c68500f
4 changed files with 3 additions and 2 deletions
  1. 1 1
      gulpfile.js
  2. 0 0
      plugin/notes/notes.esm.js
  3. 0 0
      plugin/notes/notes.js
  4. 2 1
      plugin/notes/speaker-view.html

+ 1 - 1
gulpfile.js

@@ -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}',

File diff suppressed because it is too large
+ 0 - 0
plugin/notes/notes.esm.js


File diff suppressed because it is too large
+ 0 - 0
plugin/notes/notes.js


+ 2 - 1
plugin/notes/speaker-view.html

@@ -368,7 +368,8 @@
 
 				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;
 					}
 

Some files were not shown because too many files changed in this diff