Quellcode durchsuchen

18 react update and prerender check

asmer vor 3 Monaten
Ursprung
Commit
ffe6f95fd8
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6 6
      src/SliderImage.js

+ 6 - 6
src/SliderImage.js

@@ -147,12 +147,12 @@ export default ({images = [], className, onChange, onClick, ref, current:propCur
         }
     }
 
-    if (window.navigator.userAgent.includes('Prerender')){
-        return (<img  src={images[0]} 
-                      alt={`image of good`} 
-                      style={{maxWidth: '50vw', maxHeight: '50vh'}}
-                        />)
-    }
+    // if (window.navigator.userAgent.includes('Prerender')){
+    //     return (<img  src={images[0]} 
+    //                   alt={`image of good`} 
+    //                   style={{maxWidth: '50vw', maxHeight: '50vh'}}
+    //                     />)
+    // }
 
     return (
         <div className={className}