Skip to content
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

Merged
merged 7 commits into from
Jul 17, 2018

Conversation

tpDBL
Copy link
Contributor

@tpDBL tpDBL commented Jul 10, 2018

Closes #11414

Took the Pull Request #9311 and changed the two lines, so that they also apply for Google Chrome.

@CLAassistant
Copy link

CLAassistant commented Jul 10, 2018

CLA assistant check
All committers have signed the CLA.

@tassoevan tassoevan requested a review from karlprieb July 10, 2018 16:01
@@ -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/);
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@karlprieb
Copy link
Contributor

I agree with @tassoevan you should create another check for chrome.

@RocketChat RocketChat deleted a comment Jul 11, 2018
@tpDBL
Copy link
Contributor Author

tpDBL commented Jul 11, 2018

@karlprieb Changed to a separate check for chrome

@tassoevan tassoevan added this to the 0.67.0 milestone Jul 12, 2018
@ggazzo ggazzo merged commit 218fc42 into RocketChat:develop Jul 17, 2018
@tpDBL tpDBL deleted the fix-svg-chrome branch July 18, 2018 06:05
@theorenck theorenck modified the milestones: 0.67.0, 0.68.0 Jul 19, 2018
@sampaiodiego sampaiodiego mentioned this pull request Jul 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants