Skip to content

Conversation

@TheComputerGuy96
Copy link
Contributor

Fixes #244
Supersedes #275

The lack of window.__TAURI__ object prevents most of the JS code
from running (this change stubs it which allows the Tauri GUI to
be tested in a web browser with a simple web server like PHP's one)
For some reason the background color isn't applied on input boxes
(only on WebKit) if I don't set this
@louis-e
Copy link
Owner

louis-e commented Jan 15, 2025

Thanks a lot for your research and fixes for these bugs! :)

@louis-e louis-e merged commit 3084985 into louis-e:main Jan 15, 2025
3 checks passed
import { licenseText } from './license.js';

const { invoke } = window.__TAURI__.core;
if (window.__TAURI__) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, but this change is causing an issue when trying to load world due to invoke now being scoped only inside the if block. You'll need to create a let variable above (in the global scope), for example, and assign it the value of this invoke.

image (screenshot after changing the code a tiny bit to display the `errorCode`)

@TheComputerGuy96 @louis-e

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#296 should probably fix this

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

Successfully merging this pull request may close these issues.

[DISCUSSION] Failed to create GBM buffer of size 1000x650: Invalid argument

3 participants