Skip to content

Commit

Permalink
Added type conversion to consoleErr() to prevent uncaught exception…
Browse files Browse the repository at this point in the history
…s in TM (Tampermonkey/tampermonkey#2158) ↞ [auto-sync from `adamlui/chatgpt-apps/duckduckgpt`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Aug 17, 2024
1 parent df44084 commit 2f9eb77
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions chatgpt/duckduckgpt/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.8.17.2
// @version 2024.8.17.3
// @license MIT
// @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302
// @icon64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png?af89302
Expand Down Expand Up @@ -582,7 +582,10 @@
}

function consoleInfo(msg) { console.info(`${ config.appSymbol } ${ config.appName } » ${ msg }`) }
function consoleErr(label, msg) { console.error(`${config.appSymbol} ${config.appName} » ${label}${ msg ? `: ${msg}` : '' }`)}
function consoleErr(label, msg) {
console.error( `${config.appSymbol} ${config.appName} » ${
typeof label == 'object' ? JSON.stringify(label) : label }${ msg ? `: ${msg}` : ''}`)
}

// Define MODAL functions

Expand Down

0 comments on commit 2f9eb77

Please sign in to comment.