Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ReactVR/js/Views/Prefetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class RCTPrefetch extends RCTBaseView {

if (Array.isArray(uri)) {
// Cubemap, check proper format
if (uri.length !== 6 || !uri[0].uri) {
if ((uri.length !== 6 && uri.length !== 12) || !uri[0].uri) {
console.warn(
'Prefetch expected cubemap source in format [{uri: http..}, {uri: http..}, ... ]'
);
Expand Down Expand Up @@ -82,7 +82,7 @@ export default class RCTPrefetch extends RCTBaseView {
static uriKey(uri) {
if (Array.isArray(uri)) {
// Cubemap, check proper format
if (uri.length === 6) {
if (uri.length === 6 || uri.length === 12) {
const urls = uri.map(RCTPrefetch.getUri);
return urls.join(',');
} else {
Expand Down