Commit e3338792 authored by ransome1's avatar ransome1

Snapcraft update

parent 3a8fe4dc
......@@ -16,6 +16,11 @@ confinement: strict
icon: ./assets/icons/icon.png
license: MIT
compression: lzo
architectures:
- build-on: amd64
- build-on: i386
- build-on: arm64
- build-on: armhf
apps:
sleek:
command: snap/command-chain/desktop-launch $SNAP/sleek/sleek --disable-gpu --no-sandbox
......
......@@ -213,6 +213,7 @@ const createWindow = () => {
const mainWindow = new BrowserWindow({
width: width,
height: height,
icon: path.join(__dirname, "../assets/icons/sleek.png"),
simpleFullscreen: true,
autoHideMenuBar: true,
webPreferences: {
......
......@@ -2001,7 +2001,7 @@ function configureEvents() {
});
btnChangeTodoFile.forEach(function(el) {
el.onclick = function () {
if(window.userData.files) {
if(typeof window.userData.files === "object") {
showFiles().then(response => {
console.log(response);
}).catch(error => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment