Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-elg committed Jan 19, 2023
0 parents commit a4b0b51
Show file tree
Hide file tree
Showing 6 changed files with 5,245 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
.vscode/
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Notion desktop

### An rpm of [Notion](https://notion.so)

### Installation

- `npm un build`
- `rpm -i`

<br>
<p align="center">
<img src="assets/icon.png" alt="notion" width="20%"/>
</p>
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { app, BrowserWindow, shell } = require("electron");

app.on("ready", () => {
const win = new BrowserWindow({
autoHideMenuBar: true,
});
win.maximize();
win.loadURL("https://notion.so");

// Deal with external links
win.webContents.setWindowOpenHandler(({ url }) => {
if (!url.startsWith("https://www.notion.so")) {
shell.openExternal(url);
return { action: "deny" };
}
return { action: "allow" };
});
});
Loading

0 comments on commit a4b0b51

Please sign in to comment.