mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
* chore: migrate from altool to notarytool * fix litte things in build-common * add pyenv install in build-osx * add pyinstaller/electron/signing_logs to gitignore * chore: migrate from altool to notarytool * fix little things in build.common * add pyenv install in build osx * add pyinatsller electron signing logs to gitignore * updated build-osx.sh * fix entitlement * heavily refactoring the electron app * polish and improve * further bugfixing and polishing * tiny change to improve support of MacOS * Fix dependency issues --------- Co-authored-by: Manolis <moneymanolis@protonmail.com>
28 lines
No EOL
953 B
JavaScript
28 lines
No EOL
953 B
JavaScript
// This file is required by the index.html file and will
|
|
// be executed in the renderer process for that window.
|
|
// No Node.js APIs are available in this process because
|
|
// `nodeIntegration` is turned off. Use `preload.js` to
|
|
// selectively enable features needed in the rendering
|
|
// process.
|
|
|
|
// All of the Node.js APIs are available in the preload process.
|
|
// It has the same sandbox as a Chrome extension.
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
|
const updateSpinner = (show) => {
|
|
const spinnerElement = document.getElementById('spinner');
|
|
if (spinnerElement) {
|
|
spinnerElement.classList.toggle('hidden', !show);
|
|
}
|
|
};
|
|
window.api.receive('update-loader-message', (data) => {
|
|
const launchTextElement = document.getElementById('launch-text');
|
|
if (launchTextElement) {
|
|
launchTextElement.textContent = data.msg;
|
|
updateSpinner(data.showSpinner);
|
|
}
|
|
});
|
|
|
|
|
|
}) |