Fix #2158: add R to tri object

This commit is contained in:
Oliver Blanthorn 2020-02-16 16:06:28 +00:00
parent d813b09ae4
commit 56f69a7814
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 4 additions and 0 deletions

View file

@ -24,6 +24,7 @@ import * as webext from "@src/lib/webext"
import { AutoContain } from "@src/lib/autocontainers"
import * as extension_info from "@src/lib/extension_info"
import * as omnibox from "@src/background/omnibox"
import * as R from "ramda"
// Add various useful modules to the window for debugging
; (window as any).tri = Object.assign(Object.create(null), {
@ -41,6 +42,7 @@ import * as omnibox from "@src/background/omnibox"
webext,
l: prom => prom.then(console.log).catch(console.error),
contentLocation: window.location,
R,
perf,
})

View file

@ -141,6 +141,7 @@ import { EditorCmds as editor } from "@src/content/editor"
import * as updates from "@src/lib/updates"
import * as urlutils from "@src/lib/url_util"
import * as scrolling from "@src/content/scrolling"
import * as R from "ramda"
/* tslint:disable:import-spacing */
; (window as any).tri = Object.assign(Object.create(null), {
browserBg: webext.browserBg,
@ -165,6 +166,7 @@ import * as scrolling from "@src/content/scrolling"
styling,
contentLocation: window.location,
perf,
R,
updates,
urlutils,
})