-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] Fixed svg for older chrome browsers bug #11414 #11416
Conversation
@@ -4,7 +4,7 @@ import s from 'underscore.string'; | |||
|
|||
RocketChat.settings.collection.find({_id:/theme-color-rc/i}, {fields:{ value: 1 }}).observe({changed: () => { DynamicCss.run(true); }}); | |||
|
|||
this.isFirefox = navigator.userAgent.match(/Firefox\/(\d+)\.\d/); | |||
this.isFirefox = navigator.userAgent.match(/(Firefox|Chrome)\/(\d+)\.\d/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For clarity, it's better to keep the original statement and add a new one assigning to this.isChrome
.
@@ -3,5 +3,5 @@ | |||
const firefoxBaseUrlFix = () => `${ window.location.origin }${ FlowRouter.current().path }`; | |||
|
|||
Template.icon.helpers({ | |||
baseUrl: isFirefox && isFirefox[1] < 55 ? firefoxBaseUrlFix : undefined | |||
baseUrl: isFirefox && isFirefox[2] < 55 ? firefoxBaseUrlFix : undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it the same version number for both browsers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
I agree with @tassoevan you should create another check for chrome. |
…into fix-svg-chrome Update branch
@karlprieb Changed to a separate check for chrome |
Closes #11414
Took the Pull Request #9311 and changed the two lines, so that they also apply for Google Chrome.