Browse Source

fixed 健康護照沒照片問題

VicCG.Lin 10 months ago
parent
commit
45ca61b768
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/fe/healthpassport/js/register.js

+ 1
- 1
src/fe/healthpassport/js/register.js View File

81
 
81
 
82
 		linePicUrl = url;
82
 		linePicUrl = url;
83
 		const imageURL = linePicUrl;
83
 		const imageURL = linePicUrl;
84
-		if(imageURL !== '') {
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() {