Skip to content

Commit

Permalink
Merge pull request #28 from pTinosq/23-pat-tutorial-open-in-browser
Browse files Browse the repository at this point in the history
ENHANCEMENT:23 How to get PAT button now opens in browser
  • Loading branch information
pTinosq authored Jul 17, 2023
2 parents fb9c4e6 + 9eca4a9 commit 29eecf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clipio",
"version": "2.0.1",
"version": "2.0.1a",
"description": "Clipio is a tool that allows immediate editing of content clipboard content when copying to the clipboard",
"main": "./src/index.js",
"author": "Constantinos Psomadakis",
Expand Down
7 changes: 3 additions & 4 deletions src/settings/scripts/settings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { ipcRenderer } = require("electron");
const { ipcRenderer, shell } = require("electron");

function loadSavedToken() {
// Load token from storage
Expand Down Expand Up @@ -54,9 +54,8 @@ document.addEventListener("DOMContentLoaded", function () {
tokenSave.addEventListener("click", saveToken);

showPATTutorial.addEventListener("click", function () {
window.open(
`https://github.com/pTinosq/clipio/tree/main/content/HOW_TO_GET_GITHUB_PAT.md`,
"_blank"
shell.openExternal(
"https://github.com/pTinosq/clipio/tree/main/content/HOW_TO_GET_GITHUB_PAT.md"
);
});

Expand Down

0 comments on commit 29eecf9

Please sign in to comment.