1.0.3 • Published 2 years ago

electron-bottom-window v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

electron-bottom-window

An Electron module that allows you to stick the browser window to the bottom of the z-index stack.

Installation

npm install electron-bottom-window

Usage

const { app, BrowserWindow } = require('electron')
const { stickToBottom } = require('electron-bottom-window');

function createWindow() {
    const mainWindow = new BrowserWindow({
        width: 800,
        height: 600,
        ...
    });
    mainWindow.loadFile('index.html');

    // Stick window to bottom
    stickToBottom(mainWindow);
}

app.whenReady().then(() => {
	createWindow(); 
});

:point_right: This module is based on this gist :point_left: