You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
763 B
28 lines
763 B
using UnityEngine; |
|
|
|
namespace ZenFulcrum.EmbeddedBrowser { |
|
|
|
/// <summary> |
|
/// Helper class for setting options on the browser system as a whole berfore the |
|
/// backend initalizes. |
|
/// </summary> |
|
public class BrowserSystemSettings : MonoBehaviour { |
|
[Tooltip("Where should we save the user's web profile (cookies, localStorage, etc.)? Leave blank to forget every times we restart.")] |
|
public string profilePath; |
|
|
|
[Tooltip("What user agent should we send to web pages when we request sites? Leave blank to use the default.")] |
|
public string userAgent; |
|
|
|
public void Awake() { |
|
if (!string.IsNullOrEmpty(profilePath)) { |
|
BrowserNative.ProfilePath = profilePath; |
|
} |
|
|
|
if (!string.IsNullOrEmpty(userAgent)) { |
|
UserAgent.SetUserAgent(userAgent); |
|
} |
|
} |
|
|
|
} |
|
|
|
} |