mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-12 06:28:40 +00:00
chore(deps): update dependency flow-bin to v0.134.0 [skip netlify] (#2533)
* chore(deps): update dependency flow-bin to v0.134.0 [skip netlify] * Fix flow errors Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Young Min Kin <mail@ylem.kim>
This commit is contained in:
@@ -158,7 +158,7 @@ export default class Settings {
|
||||
* This is for the second category of `errorCode`s listed in the README.
|
||||
*/
|
||||
useStrictBehavior(errorCode: string, errorMsg: string,
|
||||
token?: Token | AnyParseNode) {
|
||||
token?: Token | AnyParseNode): boolean {
|
||||
let strict = this.strict;
|
||||
if (typeof strict === "function") {
|
||||
// Allow return value of strict function to be boolean or string
|
||||
@@ -196,7 +196,7 @@ export default class Settings {
|
||||
* If `context` has a `url` field, a `protocol` field will automatically
|
||||
* get added by this function (changing the specified object).
|
||||
*/
|
||||
isTrusted(context: AnyTrustContext) {
|
||||
isTrusted(context: AnyTrustContext): boolean {
|
||||
if (context.url && !context.protocol) {
|
||||
context.protocol = utils.protocolFromUrl(context.url);
|
||||
}
|
||||
|
Reference in New Issue
Block a user