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

[bug] [api.js] appWindow.label returns null instead of its label #3295

Closed
ghost opened this issue Jan 28, 2022 · 1 comment
Closed

[bug] [api.js] appWindow.label returns null instead of its label #3295

ghost opened this issue Jan 28, 2022 · 1 comment
Labels
scope: api.js The @tauri-apps/api npm package type: bug

Comments

@ghost
Copy link

ghost commented Jan 28, 2022

Describe the bug

This (pseudo-ish) code is an example of the bug

// index.html
<script>
import { WebviewWindow } from "@tauri-apps/api/window";

const view = new WebviewWindow("uniqueLabel", {
  url: "/another-page.html"
});
</script>

// another-page.html
<script>
import { appWindow } from "@tauri-apps/api/window";

// this logs `null`, I expected it to be "uniqueLabel"
console.log(appWindow.label);
</script>

Reproduction

No response

Expected behavior

No response

Platform and versions

Operating System - Windows, version 10.0.19043 X64
Webview2 - 97.0.1072.69

Node.js environment
  Node.js - 16.13.2
  @tauri-apps/cli - 1.0.0-beta.10
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("unexpected character 't' while parsing major version number")', src\info.rs:323:53

Stack trace

No response

Additional context

Note the panic from npm run tauri info (could be another bug)
@tauri-apps/api is version ^1.0.0-beta.8 in my package.json

@ghost ghost added the type: bug label Jan 28, 2022
@amrbashir
Copy link
Member

amrbashir commented Jan 30, 2022

regression of 268450b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: api.js The @tauri-apps/api npm package type: bug
Projects
None yet
Development

No branches or pull requests

1 participant