File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 27
27
28
28
#### logging
29
29
30
+ #### filesystem
31
+
32
+ * eliminate dependency on electron remote module.
33
+ * migrate filebrowser to html File, etc..
34
+
30
35
#### drawing/rendering
31
36
32
37
* custom mouse cursors
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ export default class ImguiApp
24
24
this . runtime = ( window . process && window . process . type ) ? "electron"
25
25
: ( window . cordova ) ? "cordova" : "browser" ;
26
26
this . filesystem = new FileSystem ( this . runtime ) ;
27
- this . fs = this . filesystem . fs ;
28
- this . path = this . filesystem . path ;
29
27
this . canvas = document . getElementById ( "AppCanvas" ) ;
30
28
if ( ! this . canvas )
31
29
{
Original file line number Diff line number Diff line change @@ -48,9 +48,15 @@ export class FileSystem
48
48
if ( runtime == "electron" )
49
49
{
50
50
// we use window.require to trick webpack for electron
51
+ /* we don't want to use remote package since it's
52
+ * deprecated.
53
+ */
54
+
55
+ /*
51
56
let remote = window.require("electron").remote;
52
57
this.fs = remote.require("fs");
53
58
this.path = window.require("path");
59
+ */
54
60
this . isWindows = navigator &&
55
61
( navigator . platform . indexOf ( "Win32" ) != - 1 ) ;
56
62
}
You can’t perform that action at this time.
0 commit comments