@bobfrankston/msger 0.1.371 → 0.1.373
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/shower.js +8 -0
package/package.json
CHANGED
package/shower.js
CHANGED
|
@@ -489,6 +489,14 @@ function createMessageBoxHandle(options) {
|
|
|
489
489
|
}
|
|
490
490
|
// Flatten size object for Rust binary (expects width/height as top-level fields)
|
|
491
491
|
const rustOptions = { ...optionsToSend };
|
|
492
|
+
// If no title was provided, send a default that uses the live JS-side
|
|
493
|
+
// package.json version. The Rust binary's own default_title() embeds
|
|
494
|
+
// the version at compile time (build.rs), so it goes stale whenever
|
|
495
|
+
// the JS package bumps without a Rust rebuild — this keeps the title
|
|
496
|
+
// current without requiring a rebuild.
|
|
497
|
+
if (rustOptions.title === undefined || rustOptions.title === null) {
|
|
498
|
+
rustOptions.title = `msger ${packageJson.version}`;
|
|
499
|
+
}
|
|
492
500
|
// Add version to title only if showVersion flag is set
|
|
493
501
|
if (rustOptions.showVersion) {
|
|
494
502
|
if (rustOptions.title) {
|