Procházet zdrojové kódy

fixed 健康護照沒照片問題

VicCG.Lin před 10 měsíci
rodič
revize
69e4602dd8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      src/fe/healthpassport/js/register.js

+ 1
- 1
src/fe/healthpassport/js/register.js Zobrazit soubor

81
 
81
 
82
 		linePicUrl = url;
82
 		linePicUrl = url;
83
 		const imageURL = linePicUrl;
83
 		const imageURL = linePicUrl;
84
-		if(imageURL.trim() !== '') {
84
+		if(imageURL !== '') {
85
 			const img = new Image();
85
 			const img = new Image();
86
 			img.crossOrigin = 'anonymous';
86
 			img.crossOrigin = 'anonymous';
87
 			img.onload = function() {
87
 			img.onload = function() {