Skip to content
This repository was archived by the owner on Nov 29, 2025. It is now read-only.
This repository was archived by the owner on Nov 29, 2025. It is now read-only.

Why can default_url be used with js-runtime only? #46

@ArcticLampyrid

Description

@ArcticLampyrid

Without js-runtime, it won't be authorized. Why?

// Check if we should authorize the request, if we are in API mode
#[cfg(not(feature = "js-runtime"))]
let authorized = false;
#[cfg(feature = "js-runtime")]
let authorized =
!global.api_mode || query.token.as_deref().unwrap_or_default() == global.api_access_token;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions