|
@@ -670,7 +670,7 @@ function GenProductSection(mimg, specimg) {
|
|
|
+ '"\n layout="responsive">\n</amp-img>';
|
|
|
}
|
|
|
}
|
|
|
- tmpstr = tmpstr.replaceAll('##AMP-IMG##', mimgstr);
|
|
|
+ tmpstr = tmpstr.replaceAll('##AMP-IMG##', mimgstr == "" ? " " : mimgstr);
|
|
|
|
|
|
previmgstr = "";
|
|
|
for (i = 0; i < mimg.blocks.length; i++) {
|
|
@@ -688,7 +688,7 @@ function GenProductSection(mimg, specimg) {
|
|
|
</button>`;
|
|
|
}
|
|
|
}
|
|
|
- tmpstr = tmpstr.replaceAll('##PREV-IMG##', previmgstr);
|
|
|
+ tmpstr = tmpstr.replaceAll('##PREV-IMG##', previmgstr == "" ? " " : previmgstr);
|
|
|
|
|
|
specimgstr = "";
|
|
|
for (i = 0; i < specimg.blocks.length; i++) {
|