diff --git a/src/apis/Platform/index.js b/src/apis/Platform/index.js index 950ce698..745d99bc 100644 --- a/src/apis/Platform/index.js +++ b/src/apis/Platform/index.js @@ -1,6 +1,6 @@ const Platform = { OS: 'web', - select: (obj: Object) => obj.web + select: (obj: Object) => 'web' in obj ? obj.web : obj.default }; module.exports = Platform;