Skip to content

Commit

Permalink
feat: open file with default program
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Apr 2, 2017
1 parent 0939b81 commit 24ec276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ngrev",
"productName": "ngrev",
"description": "Reverse Engineering for Angular",
"version": "0.0.2",
"version": "0.0.3",
"author": "Minko Gechev <[email protected]>",
"homepage": "http://example.com",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/ui/components/visualizer/visualizer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { StateProxy } from '../../states/state-proxy';
import { VisualizationConfig, Layout, Metadata, Direction, SymbolTypes } from '../../../shared/data-format';
import { NodeTypeColorMap, DefaultColor } from './color-map';

import { remote } from 'electron';
import { remote, shell } from 'electron';

import { ColorLegend, Color } from './color-legend.component';

Expand Down Expand Up @@ -167,7 +167,7 @@ export class VisualizerComponent implements OnChanges, OnDestroy {
menu.append(new MenuItem({
label: 'Open File',
click() {
open(metadata.filePath);
shell.openItem(metadata.filePath);
}
}));
menu.append(new MenuItem({
Expand Down

0 comments on commit 24ec276

Please sign in to comment.