Allow providing a DOM identifier as a target for Wasm

This commit is contained in:
Héctor Ramón Jiménez 2022-11-05 01:43:28 +01:00
parent ab2872fe2b
commit d8d57a800a
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 34 additions and 8 deletions

View file

@ -1,4 +1,3 @@
#![cfg(target_os = "macos")]
//! Platform specific settings for macOS.
/// The platform specific window settings of an application.

View file

@ -0,0 +1,11 @@
//! Platform specific settings for WebAssembly.
/// The platform specific window settings of an application.
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct PlatformSpecific {
/// The identifier of a DOM element that will be replaced with the
/// application.
///
/// If set to `None`, the application will be appended to the HTML body.
pub target: Option<String>,
}

View file

@ -1,4 +1,3 @@
#![cfg(target_os = "windows")]
//! Platform specific settings for Windows.
/// The platform specific window settings of an application.