소스 검색

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;
 					}
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.