Skip to content

Browsing History #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
![image](https://img.shields.io/github/downloads/jdev082/Catalyst/total?color=%230f172a&style=for-the-badge)
# Catalyst
A lightweight and user-focused web browser powered by Electron
![image](https://user-images.githubusercontent.com/92550746/213339204-d0ab12ec-cbb8-46f2-bea6-b9df97202b56.png)
![Catalyst360](https://github.com/CatalystDevOrg/Catalyst/assets/92550746/d9b9ef81-3544-4364-bef8-d5a69c165abb)
## Packages
Here are the Linux distributions that have Catalyst in their repositories: \
[![Packaging status](https://repology.org/badge/vertical-allrepos/catalyst-browser.svg)](https://repology.org/project/catalyst-browser/versions)
## Other Systems
![image](https://github.com/CatalystDevOrg/Catalyst/assets/92550746/ec8b5c92-760a-4dde-aca5-e61a52073d55) Windows 10 or later x64 and ARM \
![image](https://github.com/CatalystDevOrg/Catalyst/assets/92550746/bf75d9b2-242f-47a5-9a15-964a43f18bb5) AppImage for Linux x64 \
![image](https://github.com/CatalystDevOrg/Catalyst/assets/92550746/c95a1e37-fcab-4c0a-a001-4d336f8ce670) DMGs and ZIPs for MacOS x64 and Apple Silicon \
![image](https://github.com/CatalystDevOrg/Catalyst/assets/92550746/1a18e7a4-cf04-47db-b3eb-de15d0dc4fa7) DEBs for Debian x64 and ARM \
![image](https://github.com/CatalystDevOrg/Catalyst/assets/92550746/c5fb1433-4efc-4a87-b129-6ffbdb0b14e2) RPMS for Fedora x64

Expand Down
6 changes: 6 additions & 0 deletions main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,11 @@ ipcMain.handle('read-user-data', async (event, fileName) => {
return buf;
});

ipcMain.handle('write-to-history', async (event, title, url) => {
const path = app.getPath('userData');
const file = path + '/history.txt'
fs.writeFileSync(file, `${title}`);
})

const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
3 changes: 2 additions & 1 deletion main/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ contextBridge.exposeInMainWorld('cat', {
}
);
},
enableAdBlocker: () => ipcRenderer.invoke('enable-ad-blocker')
enableAdBlocker: () => ipcRenderer.invoke('enable-ad-blocker'),
addToHistory: (title, url) => ipcRenderer.invoke('write-to-history')
});