瀏覽代碼

fixed codacy

version-14
Achilles Rasquinha 7 年之前
父節點
當前提交
c582e7ae46
共有 1 個檔案被更改,包括 9 行新增9 行删除
  1. +9
    -9
      frappe/public/js/frappe/ui/capture.js

+ 9
- 9
frappe/public/js/frappe/ui/capture.js 查看文件

@@ -1,13 +1,9 @@
frappe.ui.Capture = class
frappe.ui.Capture = class
{
constructor (options)
constructor (options = { })
{
this.options =
{
width: 480, height: 320, flip_horiz: true
};

this.dialog = new frappe.ui.Dialog();
this.options = Object.assign({}, frappe.ui.Capture.DEFAULT_OPTIONS, options);
this.dialog = new frappe.ui.Dialog();
this.template =
`
<div class="text-center">
@@ -91,4 +87,8 @@ frappe.ui.Capture = class

$(this.dialog.$wrapper).remove();
}
};
};
frappe.ui.Capture.DEFAULT_OPTIONS =
{
width: 480, height: 320, flip_horiz: true
}

Loading…
取消
儲存