Skip to content

Commit c713b48

Browse files
committed
Work on bugs
1 parent cf9eafc commit c713b48

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/html/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
<a class="dropdown-item action-fullscreen"
258258
href="#">
259259
<i class="fa fa-fw fa-arrows-alt"></i>
260-
&nbsp;Fullscreen
260+
&nbsp;Full screen
261261
<span class="navbar-help pull-right">(ctrl+alt+f)</span>
262262
<span class="clearfix"></span>
263263
</a>

src/js/app.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(function () {
22

3-
var runtime = function (appWindow, isRestart) {
3+
var runtime = function (appWindow, launchData, isRestart) {
4+
appWindow.contentWindow.launchData = launchData;
45
appWindow.contentWindow.__MGA__bRestart = isRestart;
56
};
67

@@ -15,13 +16,13 @@
1516
id: "codepad-main"
1617
},
1718
function (appWindow) {
18-
runtime(appWindow, false);
19-
appWindow.contentWindow.launchData = launchData;
19+
runtime(appWindow, launchData, false);
20+
2021
}
2122
);
2223
});
2324

24-
chrome.app.runtime.onRestarted.addListener(function () {
25+
chrome.app.runtime.onRestarted.addListener(function (launchData) {
2526
chrome.app.window.create('src/html/app.html', {
2627
innerBounds: {width: 1024, height: 768},
2728
resizable: true,
@@ -32,7 +33,7 @@
3233
id: "codepad-main"
3334
},
3435
function (appWindow) {
35-
runtime(appWindow, true);
36+
runtime(appWindow, launchData, true);
3637
}
3738
);
3839
});

0 commit comments

Comments
 (0)