Skip to content

Commit

Permalink
Update sb3.js
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings authored Apr 21, 2024
1 parent 4009cfd commit 8e9a18b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/serialization/sb3.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,13 @@ const serialize = function (runtime, targetId, {allowOptimization = true} = {})
meta.origin = runtime.origin;
}

// USB: A few mods have agreed to list our platform's name inside of the project json.
// We also add a couple more bits specific to Unsandboxed.
const platformMeta = Object.create(null);
platformMeta.name = "Unsandboxed";
platformMeta.version = "unsandboxed-alpha";
meta.platform = platformMeta;

// Attach full user agent string to metadata if available
meta.agent = '';
// TW: Never include full user agent to slightly improve user privacy
Expand Down

0 comments on commit 8e9a18b

Please sign in to comment.