Skip to content

Commit

Permalink
Babel fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mastef committed Feb 27, 2019
1 parent 4d886ab commit 846e26d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/TabManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
if (this.state.windows[i].state == "minimized") haveMin = true;
};

return React.DOM.div({ id: "root", className: (this.state.compact ? "compact" : "") + " " + (this.state.animations ? "animations" : "no-animations")+ " " + (this.state.windowTitles ? "windowTitles" : "no-windowTitles"), onKeyDown: this.checkKey, ref: "root", tabIndex: 0 },
return React.DOM.div({ id: "root", className: (this.state.compact ? "compact" : "") + " " + (this.state.animations ? "animations" : "no-animations") + " " + (this.state.windowTitles ? "windowTitles" : "no-windowTitles"), onKeyDown: this.checkKey, ref: "root", tabIndex: 0 },
React.DOM.div({ className: "window-container " + this.state.layout + " " + (this.state.optionsActive ? "hidden" : ""), ref: "windowcontainer", tabIndex: 2 },
this.state.windows.map(function (window) {
if (window.state == "minimized") return;
Expand Down
10 changes: 5 additions & 5 deletions lib/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
windowTitles: [],
color: color,
name: name,
tabs: 0
};
tabs: 0 };


},
render: function render() {var _this = this;
Expand Down Expand Up @@ -116,7 +116,7 @@
React.DOM.h3({ className: "center windowTitle" }, name));

} else {
if(this.state.windowTitles.length == 0 || this.state.tabs != tabs.length) {
if (this.state.windowTitles.length == 0 || this.state.tabs != tabs.length) {
this.state.tabs = tabs.length;
for (var i = 0; i < tabs.length; i++) {
if (!!tabs[i].props && !!tabs[i].props.tab && !!tabs[i].props.tab.url) {
Expand All @@ -132,9 +132,9 @@
var regex_var = new RegExp(/(\.[^\.]{0,2})(\.[^\.]{0,2})(\.*$)|(\.[^\.]*)(\.*$)/);
hostname = hostname.replace(regex_var, '').split('.').pop();
}
if(hostname.length > 18) {
if (hostname.length > 18) {
hostname = tabs[i].props.tab.title;
while(hostname.length > 18 && hostname.indexOf(" ") > -1) {
while (hostname.length > 18 && hostname.indexOf(" ") > -1) {
hostname = hostname.split(" ");
hostname.pop();
hostname = hostname.join(" ");
Expand Down

0 comments on commit 846e26d

Please sign in to comment.