Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliJ Window object not available #839

Open
Pineappletooth opened this issue Dec 6, 2024 · 1 comment
Open

IntelliJ Window object not available #839

Pineappletooth opened this issue Dec 6, 2024 · 1 comment

Comments

@Pineappletooth
Copy link

In intellij there is a Window object which has the build in methods atob and btoa.
Usage is like this.

> {%
    client.log(Window.atob(response.body))
%}

In httpYac (tested in V6.16.4) we get the error Window is not defined (ReferenceError: Window is not defined - Object.userJS

@AnWeber
Copy link
Owner

AnWeber commented Jan 3, 2025

atob is accessible in global scope (just write atob) I'll check if I can find a specification for the window object at Intellij, and if I can mock it.

https://www.jetbrains.com/help/idea/javascript-api-supported-by-http-client.html#btoa-and-atob
Only atob and btoa are available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants