Disable colors in Edge and Internet Explorer#489
Disable colors in Edge and Internet Explorer#489TooTallNate merged 1 commit intodebug-js:masterfrom ibc:disable-colors-in-edge-and-ie
Conversation
|
NOTE: I will be able to test my fork tomorrow Monday and will confirm here that it works (I hope). |
2 similar comments
|
Hi, I'm just using my fork in Edge. It works. Obviously, the Edge support for And we get rid of the ugly I hope you merge it. |
|
Please authors, any feedback/comment about this PR? debug module does not properly work in IE/Edge. This PR fixes that. Please, don't leave this PR open forever. |
|
Merged, thank you! |
|
THANKS!!! Finally I can remove my |
|
Well, not so fast, I should wait for a new release in NPM :) |
|
Check v3.0.1
…On Thu, Aug 24, 2017 at 12:42 PM, Iñaki Baz Castillo < ***@***.***> wrote:
Well, not so fast, I should wait for a new release in NPM :)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#489 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEWWBZ02LyE-1epPHXEnxmeHSjzwTViks5sbdIvgaJpZM4O8qne>
.
|
|
Awesome, thanks! 👍 |
|
top top top! |
Fixes #417
Both Internet Explorer and Edge report "AppleWebKit" in their
User-Agent, so the currentuseColors()function insrc/browser.jsreturnstrue(check my rationale about this here. But in fact, Edge and Internet Explorer do not support colors in the console.This PR checks whether the browser is Edge/IE and, if so, makes
useColors()return false.NOTE: A good project for detecting browsers is bowser. In includes nice examples of how the
User-Agentof many browsers looks like.