This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Finder -> Bloom (Multi-Monitor) | |
| -- Hammerspoon init.lua script so when clicking or alt-tabbing to Finder, it will open Bloom instead. | |
| local bloomName = "Bloom" | |
| local function doRedirect() | |
| local finder = hs.application.get("Finder") | |
| -- If Finder isn't even active anymore, stop | |
| if not finder or not finder:isFrontmost() then return end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const dbName = prompt("Enter the name of the database:"); | |
| const request = indexedDB.open(dbName); | |
| request.onerror = function(event) { | |
| console.error("Could not open database", event.target.errorCode); | |
| }; | |
| request.onsuccess = function(event) { | |
| const db = event.target.result; | |
| const objectStoreNames = Array.from(db.objectStoreNames); | |
| const data = {}; |