Skip to content

Commit bc99496

Browse files
committed
rename background_rgba_color to background_color in 'Screenshot#capture_screenshot'
1 parent e40779c commit bc99496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ferrum/page/screenshot.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ def to_camel_case(option)
145145
option.to_s.gsub(/(?:_|(\/))([a-z\d]*)/) { "#{$1}#{$2.capitalize}" }.to_sym
146146
end
147147

148-
def capture_screenshot(options, full, background_rgba_color)
148+
def capture_screenshot(options, full, background_color)
149149
maybe_resize_fullscreen(full) do
150-
with_background_color(background_rgba_color) do
150+
with_background_color(background_color) do
151151
command("Page.captureScreenshot", **options)
152152
end
153153
end.fetch("data")

0 commit comments

Comments
 (0)