mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 13:25:51 +08:00
Attach platform to asset url
Summary: Depends on D2420548 Reviewed By: @martinbigio Differential Revision: D2421696
This commit is contained in:
committed by
facebook-github-bot-8
parent
c4305fe9af
commit
ce47e56b7b
@@ -63,7 +63,8 @@ function getPathInArchive(asset) {
|
||||
* from the devserver
|
||||
*/
|
||||
function getPathOnDevserver(devServerUrl, asset) {
|
||||
return devServerUrl + getScaledAssetPath(asset) + '?hash=' + asset.hash;
|
||||
return devServerUrl + getScaledAssetPath(asset) + '?platform=' + Platform.OS +
|
||||
'&hash=' + asset.hash;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user