Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.04 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.04 KB

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(); 
});

👉 This module is based on this gist 👈