[go: nahoru, domu]

Skip to content

Commit

Permalink
It's a window, not a tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnschneid committed Mar 1, 2015
1 parent 500c882 commit b794af1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chroot-bin/croutonxinitrc-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ and enabled, and up to date. (download from http://goo.gl/OVQOEt)" 1>&2
try="$((try+1))"
done
if [ "$ret" -eq 0 ]; then
echo "Connected to extension, launched crouton in a tab window." 1>&2
echo "Connected to extension, launched crouton in a window." 1>&2
fi
fi

Expand Down
4 changes: 2 additions & 2 deletions host-ext/crouton/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ function websocketMessage(evt) {
}
refreshUI();
break;
case 'X': /* Ask to open a crouton-in-a-tab window */
case 'X': /* Ask to open a crouton window */
display = payload
match = display.match(/^:([0-9]+)$/)
displaynum = match ? match[1] : null
Expand Down Expand Up @@ -530,7 +530,7 @@ function websocketMessage(evt) {
kiwi_win_[display].window = null;

win = windows_.filter(function(x){ return x.display == display })[0]
name = win ? win.name : "crouton in a tab";
name = win ? win.name : "crouton in a window";

chrome.windows.create({ 'url': "window.html?display=" + displaynum +
"&debug=" + (debug_ ? 1 : 0) +
Expand Down
4 changes: 2 additions & 2 deletions host-ext/crouton/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var errordiv_ = null; /* error div */
var debug_ = 0; /* Debuging level, passed to NaCl module */
var hidpi_ = 0; /* HiDPI mode */
var display_ = null; /* Display number to use */
var title_ = "crouton in a tab"; /* window title */
var title_ = "crouton in a window"; /* window title */
var connected_ = false;
var closing_ = false; /* Disconnected, and waiting for the window to close */
var error_ = false; /* An error has occured */
Expand Down Expand Up @@ -95,7 +95,7 @@ function setHiDPI(hidpi) {
}

function setTitle(title) {
document.title = "crouton in a tab: " + title + " (" + display_ + ")";
document.title = "crouton (" + display_ + "): " + title;
}

/* Set status message */
Expand Down

0 comments on commit b794af1

Please sign in to comment.