/**
 * 模拟市民云APP内嵌webview，方便本地调试
 */

(function () {
  // 设置UA
  const info = {
    ua: "Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 iOS/15.6 Brand/iPhone Display/414.00*896.00 smyapp/tfsmy tfsmy/4.1.0 UnionPay/1.0 tfsmy",
  };

  Object.defineProperty(navigator, "userAgent", {
    value: info.ua,
    writable: false,
  });

  console.log(`[伪造UA OK]:`, window.navigator.userAgent);
})();
