File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -173,7 +173,9 @@ function needsFallback() {
173173 const isAppleDevice = / M a c I n t e l | i P h o n e | i P a d | i P o d / i. test ( platform ) ;
174174 const isSafari = / ^ ( (? ! c h r o m e | a n d r o i d ) .) * s a f a r i / i. test ( userAgent ) ;
175175
176- return isAppleDevice || isSafari ;
176+ const isFirefox = navigator . userAgent . toLowerCase ( ) . indexOf ( "firefox" ) > - 1 ;
177+
178+ return isAppleDevice || isSafari || isFirefox ;
177179}
178180
179181function handleFallbackSetup ( ) {
@@ -184,7 +186,7 @@ function handleFallbackSetup() {
184186
185187 const p = document . createElement ( "p" ) ;
186188 p . innerHTML =
187- "If you are using an Apple Device, the blue border may not show up on the image . <br> " +
189+ "If you are using an Apple Device or Firefox , the image not be generated properly . <br> " +
188190 "You can click the 'Generate fallback' button below to get the server generated image. <br> " +
189191 "Note that it can take a couple of seconds to load. <br>" +
190192 "<strong> This is a limited, temporary fix. Size has no effect.</strong>" ;
You can’t perform that action at this time.
0 commit comments