瀏覽代碼

rebuild notes plugin when html changes

hakimel 3 年之前
父節點
當前提交
c83c68500f
共有 4 個文件被更改,包括 3 次插入2 次删除
  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}',

文件差異過大導致無法顯示
+ 0 - 0
plugin/notes/notes.esm.js


文件差異過大導致無法顯示
+ 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;
 					}
 

部分文件因文件數量過多而無法顯示