Factory: class.extend -> es6 class

This commit is contained in:
Zlash65 2018-07-24 14:20:10 +05:30
parent 90bb5f43d5
commit 617532b2cb

View File

@ -1,6 +1,6 @@
frappe.provide('erpnext.hub.pages');
frappe.views.HubFactory = frappe.views.Factory.extend({
frappe.views.HubFactory = class HubFactory extends frappe.views.Factory({
make(route) {
const page_name = frappe.get_route_str();
const page = route[1];