Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marfpss committed Apr 12, 2023
1 parent f3e03c0 commit ff8ccb6
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
package-lock.json
package.json
dist
icon.ico
icon.png
largeImage.png
discord-rpc.js
42 changes: 42 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
const { app, BrowserWindow } = require('electron')
const path = require('path')
const client = require('./discord-rpc');

function createWindow () {
// Crie uma janela do navegador.
let win = new BrowserWindow({
width: 1920,
height: 1080,
fullscreen: true,
autoHideMenuBar: true,
title: 'MarTV | Melhor Site para assistir Filmes, Séries e Canais de TV',
icon: 'icon.png'
})

win.webContents.on('did-finish-load', () => {
let pageTitle = win.webContents.getTitle()
win.setTitle(pageTitle)
})

// Entrar no modo de tela cheia
win.setFullScreen(true)

// Sair do modo de tela cheia
win.setFullScreen(false)

// Verificar se a janela está em modo de tela cheia
if (win.isFullScreen()) {
console.log('A janela está em modo de tela cheia!')
}

// Carregue o site MarTV no webview.
win.loadURL('https://martv.marstore.repl.co/home/')

// Abre as DevTools (Ferramentas do Desenvolvedor).
// win.webContents.openDevTools()
}



// Evento "ready" é acionado quando o Electron termina de inicializar e está pronto para criar janelas do navegador.
app.whenReady().then(createWindow)

0 comments on commit ff8ccb6

Please sign in to comment.