Browse Source

Changed code to prevent errors in sencha compilation

pull/1772/merge
Ramiro Saenz 7 years ago
parent
commit
562f4f9d9f
  1. 2
      app/view/main/MainController.js

2
app/view/main/MainController.js

@ -9,7 +9,7 @@ Ext.define('Rambox.view.main.MainController', {
tabPanel.setTabPosition(config.tabbar_location); tabPanel.setTabPosition(config.tabbar_location);
tabPanel.setTabRotation(0); tabPanel.setTabRotation(0);
let reorderer = tabPanel.plugins.find((plugin) => plugin.ptype == "tabreorderer"); var reorderer = tabPanel.plugins.find(function(plugin) { return plugin.ptype == "tabreorderer"});
if ( reorderer !== undefined ) { if ( reorderer !== undefined ) {
const names = reorderer.container.getLayout().names; const names = reorderer.container.getLayout().names;

Loading…
Cancel
Save