You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.error("error while making first paint preview.",e);
100
-
});
96
+
});
101
97
};
102
98
103
99
constd2c_imageload=()=>{
@@ -139,8 +135,14 @@ export function Preview({
139
135
}
140
136
}else{
141
137
if(_input){
142
-
d2c_firstload();
143
-
d2c_imageload();
138
+
d2c_firstload().then((r)=>{
139
+
on_preview_result(r,false);
140
+
// if the result contains a image and needs to be fetched,
141
+
if(r.code.raw.includes(placeholderimg)){
142
+
// TODO: we don't yet have other way to know if image is used, other than checking if placeholder image is used. - this needs to be updated in d2c module to include used images meta in the result.
0 commit comments