You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

18 lines
465 B

const Store = require('electron-store');
const store = new Store();
const $ = require("../javascripts/jquery.min.js")
fetch("https://google.com")
.then(() => {
$('#content').show().addClass("d-flex");
if (!store.get("logged-in")) {
console.log("Not logged in");
}
})
.catch(() => {
$('#error').show().addClass("d-flex");
})
.finally(() => {
$('#loader').hide().removeClass("d-flex");
});