Skip to content

Commit

Permalink
Merge pull request #20 from Social-graphics-library/dev
Browse files Browse the repository at this point in the history
✅ Version Update 1.1.0
  • Loading branch information
JosunLP authored Dec 20, 2021
2 parents 12c7e7d + ed7bb74 commit 1bc92c9
Show file tree
Hide file tree
Showing 22 changed files with 593 additions and 128 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,13 @@ The build script first installs all dependencies with ```npm install``` and then
![Step 5](https://raw.githubusercontent.com/Social-graphics-library/Template-Generator/main/static/assets/STEP_5.png)

---

## Check template

### Step 1 - Select JS template file

![Check Step 1](https://raw.githubusercontent.com/Social-graphics-library/Template-Generator/main/static/assets/CHECK_STEP_1.png)

### Step 2 - Click on check button

![Check Step 2](https://raw.githubusercontent.com/Social-graphics-library/Template-Generator/main/static/assets/CHECK_STEP_2.png)
4 changes: 4 additions & 0 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ var createWindow = function () {
win.loadFile('./static/index.html');
// Open the DevTools.
// win.webContents.openDevTools({ mode: 'detach' })
win.webContents.on('new-window', function (e, url) {
e.preventDefault();
require('electron').shell.openExternal(url);
});
};
electron_1.app.whenReady().then(function () {
createWindow();
Expand Down
7 changes: 6 additions & 1 deletion app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const createWindow = () => {

// Open the DevTools.
// win.webContents.openDevTools({ mode: 'detach' })

win.webContents.on('new-window', (e, url) => {
e.preventDefault();
require('electron').shell.openExternal(url);
});
}

app.whenReady().then(() => {
Expand All @@ -31,4 +36,4 @@ app.whenReady().then(() => {

app.on('window-all-closed', () => {
if (process.platform !== 'darwin') app.quit()
})
})
152 changes: 83 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1bc92c9

Please sign in to comment.