Skip to content

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

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions