1
0
Эх сурвалжийг харах

rebuild notes plugin when html changes

hakimel 3 жил өмнө
parent
commit
c83c68500f

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

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно