Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Remember QR Size in Webkit #3367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/General/Settings.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ Settings =
addCheckboxes $('div[data-name="JSON Index"] > .suboption-list', section), Config.Index

# Unsupported options
if $.engine isnt 'gecko'
$('div[data-name="Remember QR Size"]', section).hidden = true
if $.perProtocolSettings or location.protocol isnt 'https:'
$('div[data-name="Redirect to HTTPS"]', section).hidden = true
if $.platform isnt 'crx'
Expand Down
3 changes: 1 addition & 2 deletions src/Posting/QR.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,7 @@ QR =
event = if node.nodeName is 'SELECT' then 'change' else 'input'
$.on nodes[name], event, save

# XXX Blink and WebKit treat width and height of <textarea>s as min-width and min-height
if $.engine is 'gecko' and Conf['Remember QR Size']
if Conf['Remember QR Size']
$.get 'QR Size', '', (item) ->
(nodes.com.style.cssText = item['QR Size'])
$.on nodes.com, 'mouseup', (e) ->
Expand Down