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

Added Otter Browser detection. #310

Closed
wants to merge 3 commits into from
Closed

Added Otter Browser detection. #310

wants to merge 3 commits into from

Conversation

mkljczk
Copy link

@mkljczk mkljczk commented Jul 6, 2017

Signed-off-by: Marcin Mikołajczak me@m4sk.in

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
@@ -179,5 +179,10 @@ def proxy?
def electron?(expected_version = nil)
Electron.new(ua).match? && detect_version?(full_version, expected_version)
end

Copy link
Owner

Choose a reason for hiding this comment

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

Trailing whitespace detected.

@@ -0,0 +1,21 @@
# frozen_string_literal:
Copy link
Owner

Choose a reason for hiding this comment

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

Trailing whitespace detected.

# frozen_string_literal:

module Browser
class OtterBrowser < Base
Copy link
Owner

Choose a reason for hiding this comment

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

@mkljczk
Copy link
Author

mkljczk commented Jul 6, 2017

I don't understand it…

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>

# Detect if browser is Otter Browser.
def otter_browser?(expected_version = nil)
OtterBrowser.new(ua).match? && detect_version?(full_version, expected_version)
Copy link
Owner

Choose a reason for hiding this comment

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

Line is too long. [84/80]

# frozen_string_literal: true

module Browser
class OtterBrowser < Base
Copy link
Owner

Choose a reason for hiding this comment

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

@fnando
Copy link
Owner

fnando commented Jul 6, 2017

Ebert has finished reviewing this Pull Request and has found:

  • 4 possible new issues (including those that may have been commented here).

You can see more details about this review at https://ebertapp.io/github/fnando/browser/pulls/310.

@fnando fnando closed this in 3726084 Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants