Skip to content

Commit a7143ec

Browse files
committed
Work on bugs
1 parent 2f27cf0 commit a7143ec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/js/events.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ $(document).ready(function () {
1717
Sidebar.init(Notifications, Editors, Files);
1818
IdeSettings.init(Editors).then(Editors.startup());
1919

20-
chrome.app.runtime.onLaunched.addListener(function (launchData) {
21-
Editors.handleLaunchData(launchData.items);
22-
console.log('asdasd');
23-
});
2420

2521
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2622

@@ -147,7 +143,6 @@ $(document).ready(function () {
147143
Editors.onDropFiles(e);
148144
});
149145

150-
151146
// Rename file
152147
$(document).on('click', '.action-rename-file', function () {
153148
$.event.trigger({
@@ -209,6 +204,11 @@ $(document).ready(function () {
209204
Sidebar.onChangeNameFile(e.idx, e.nodeId, e.tabName);
210205
});
211206

207+
// User opens file from outside app
208+
chrome.app.runtime.onLaunched.addListener(function (launchData) {
209+
Editors.handleLaunchData(launchData.items);
210+
});
211+
212212

213213
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
214214

src/js/handlers/editors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ var EditorsHandler = function () {
602602

603603
var deferred = $.Deferred();
604604
var promises = [];
605-
launchDataItems = typeof launchDataItems === typeof undefined
605+
launchDataItems = typeof launchDataItems !== typeof undefined
606606
? launchDataItems
607607
: [];
608608

0 commit comments

Comments
 (0)