mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Merge pull request #1072 from tridactyl/exclaim_why
[RFC] Try to make exclaim give better errors
This commit is contained in:
commit
a555c6a330
2 changed files with 13 additions and 8 deletions
|
@ -749,7 +749,7 @@ export function cssparse(...css: string[]) {
|
|||
/** @hidden */
|
||||
//#background
|
||||
export async function loadtheme(themename: string) {
|
||||
if (!await Native.nativegate("0.1.9")) return
|
||||
if (!(await Native.nativegate("0.1.9"))) return
|
||||
const separator = (await browserBg.runtime.getPlatformInfo().os) == "win" ? "\\" : "/"
|
||||
// remove the "tridactylrc" bit so that we're left with the directory
|
||||
const path =
|
||||
|
@ -871,7 +871,9 @@ export async function nativeopen(url: string, ...firefoxArgs: string[]) {
|
|||
*/
|
||||
//#background
|
||||
export async function exclaim(...str: string[]) {
|
||||
fillcmdline((await Native.run(str.join(" "))).content)
|
||||
if (await Native.nativegate()) {
|
||||
fillcmdline((await Native.run(str.join(" "))).content)
|
||||
}
|
||||
} // should consider how to give option to fillcmdline or not. We need flags.
|
||||
|
||||
/**
|
||||
|
@ -879,7 +881,9 @@ export async function exclaim(...str: string[]) {
|
|||
*/
|
||||
//#background
|
||||
export async function exclaim_quiet(...str: string[]) {
|
||||
return (await Native.run(str.join(" "))).content
|
||||
if (await Native.nativegate()) {
|
||||
return (await Native.run(str.join(" "))).content
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -589,15 +589,16 @@ class default_config {
|
|||
* Logging levels. Unless you're debugging Tridactyl, it's unlikely you'll ever need to change these.
|
||||
*/
|
||||
logging: { [key: string]: LoggingLevel } = {
|
||||
messaging: "warning",
|
||||
cmdline: "warning",
|
||||
controller: "warning",
|
||||
containers: "warning",
|
||||
hinting: "warning",
|
||||
state: "warning",
|
||||
controller: "warning",
|
||||
excmd: "error",
|
||||
styling: "warning",
|
||||
hinting: "warning",
|
||||
messaging: "warning",
|
||||
native: "warning",
|
||||
performance: "warning",
|
||||
state: "warning",
|
||||
styling: "warning",
|
||||
}
|
||||
noiframeon: string[] = []
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue