mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
Moved margin value to the dimensions API
This commit is contained in:
@@ -117,7 +117,6 @@ class Entry
|
||||
sizes << {
|
||||
"width" => size.width,
|
||||
"height" => size.height,
|
||||
"margin" => Config.current.page_margin,
|
||||
}
|
||||
rescue e
|
||||
Logger.warn "Failed to read page #{i} of entry #{zip_path}. #{e}"
|
||||
|
||||
@@ -664,6 +664,7 @@ struct APIRouter
|
||||
send_json env, {
|
||||
"success" => true,
|
||||
"dimensions" => sizes,
|
||||
"margin" => Config.current.page_margin
|
||||
}.to_json
|
||||
rescue e
|
||||
send_json env, {
|
||||
|
||||
Reference in New Issue
Block a user