Skip to content

Commit

Permalink
补充web端的LaunchOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcuijuan committed Nov 26, 2024
1 parent 522edde commit d190c21
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/api-proxy/src/platform/api/system/index.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,23 @@ function getSystemInfo (options = {}) {
successHandle(res, options.success, options.complete)
}

const getLaunchOptionsSync = envError('getLaunchOptionsSync')

function getEnterOptionsSync () {
const getEnterOptionsSync = function () {
if (!isBrowser) {
throwSSRWarning('getEnterOptionsSync API is running in non browser environments')
return
}
return global.__mpxEnterOptions || {}
}

const getLaunchOptionsSync = function () {
if (!isBrowser) {
throwSSRWarning('getLaunchOptionsSync API is running in non browser environments')
return
}
return global.__mpxEnterOptions || {}
}


export {
getSystemInfo,
getSystemInfoSync,
Expand Down

0 comments on commit d190c21

Please sign in to comment.