mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -05:00
debug: add more to content window
This commit is contained in:
parent
241bccda7e
commit
5f560f5e0b
1 changed files with 25 additions and 6 deletions
|
@ -3,19 +3,38 @@
|
|||
// Be careful: typescript elides imports that appear not to be used if they're
|
||||
// assigned to a name. If you want an import just for its side effects, make
|
||||
// sure you import it like this:
|
||||
import "./keydown_content"
|
||||
import "./commandline_content"
|
||||
import "./excmds_content"
|
||||
import "./hinting"
|
||||
/* import "./keydown_content" */
|
||||
/* import "./commandline_content" */
|
||||
/* import "./excmds_content" */
|
||||
/* import "./hinting" */
|
||||
|
||||
console.log("Tridactyl content script loaded, boss!")
|
||||
|
||||
// Add various useful modules to the window for debugging
|
||||
import * as webext from './lib/webext'
|
||||
import * as commandline_content from './commandline_content'
|
||||
import * as convert from './convert'
|
||||
import * as dom from './dom'
|
||||
import * as excmds from './excmds_content'
|
||||
import * as hinting_content from './hinting'
|
||||
import * as itertools from './itertools'
|
||||
import * as keydown_content from "./keydown_content"
|
||||
import * as messaging from './messaging'
|
||||
import * as msgsafe from './msgsafe'
|
||||
import state from './state'
|
||||
import * as webext from './lib/webext'
|
||||
|
||||
(window as any).tri = Object.assign(Object.create(null), {
|
||||
browserBg: webext.browserBg,
|
||||
webext,
|
||||
commandline_content,
|
||||
convert,
|
||||
dom,
|
||||
excmds,
|
||||
hinting_content,
|
||||
itertools,
|
||||
keydown_content,
|
||||
messaging,
|
||||
msgsafe,
|
||||
state,
|
||||
webext,
|
||||
l: prom => prom.then(console.log).catch(console.error),
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue