Skip to content

[FIX] Fixed svg for older chrome browsers bug #11414#11416

Merged
ggazzo merged 7 commits intoRocketChat:developfrom
tpDBL:fix-svg-chrome
Jul 17, 2018
Merged

[FIX] Fixed svg for older chrome browsers bug #11414#11416
ggazzo merged 7 commits intoRocketChat:developfrom
tpDBL:fix-svg-chrome

Conversation

@tpDBL
Copy link
Copy Markdown
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
Copy Markdown

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
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
Copy Markdown
Member

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.


Template.icon.helpers({
baseUrl: isFirefox && isFirefox[1] < 55 ? firefoxBaseUrlFix : undefined
baseUrl: isFirefox && isFirefox[2] < 55 ? firefoxBaseUrlFix : undefined
Copy link
Copy Markdown
Member

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

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

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

tpDBL commented Jul 11, 2018

@karlprieb Changed to a separate check for chrome

@tassoevan tassoevan added type: bug area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction labels Jul 12, 2018
@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

Labels

area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants