"use strict";const e=require("../vendor.js");exports.CheckUpdate=function(){const n=e.index.getUpdateManager();n.onCheckForUpdate(function(e){console.log(e.hasUpdate)}),n.onUpdateReady(function(){e.index.showModal({title:"更新提示",content:"新版本已经准备好，是否重启应用？",success:function(e){e.confirm&&n.applyUpdate()}})}),n.onUpdateFailed(function(){})};
