File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,6 @@ $(document).ready(function () {
17
17
Sidebar . init ( Notifications , Editors , Files ) ;
18
18
IdeSettings . init ( Editors ) . then ( Editors . startup ( ) ) ;
19
19
20
- chrome . app . runtime . onLaunched . addListener ( function ( launchData ) {
21
- Editors . handleLaunchData ( launchData . items ) ;
22
- console . log ( 'asdasd' ) ;
23
- } ) ;
24
20
25
21
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
26
22
@@ -147,7 +143,6 @@ $(document).ready(function () {
147
143
Editors . onDropFiles ( e ) ;
148
144
} ) ;
149
145
150
-
151
146
// Rename file
152
147
$ ( document ) . on ( 'click' , '.action-rename-file' , function ( ) {
153
148
$ . event . trigger ( {
@@ -209,6 +204,11 @@ $(document).ready(function () {
209
204
Sidebar . onChangeNameFile ( e . idx , e . nodeId , e . tabName ) ;
210
205
} ) ;
211
206
207
+ // User opens file from outside app
208
+ chrome . app . runtime . onLaunched . addListener ( function ( launchData ) {
209
+ Editors . handleLaunchData ( launchData . items ) ;
210
+ } ) ;
211
+
212
212
213
213
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
214
214
Original file line number Diff line number Diff line change @@ -602,7 +602,7 @@ var EditorsHandler = function () {
602
602
603
603
var deferred = $ . Deferred ( ) ;
604
604
var promises = [ ] ;
605
- launchDataItems = typeof launchDataItems = == typeof undefined
605
+ launchDataItems = typeof launchDataItems ! == typeof undefined
606
606
? launchDataItems
607
607
: [ ] ;
608
608
You can’t perform that action at this time.
0 commit comments