Skip to content

Commit

Permalink
Fix: Fixing vanity urls for excel online on IE11 (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Press authored May 26, 2017
1 parent 7da7efc commit ff6ae22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/viewers/office/OfficeViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const MESSAGE_HOST_READY = 'Host_PostmessageReady';
const tempAnchor = document.createElement('a');
tempAnchor.href = sharedLink;
const vanitySubdomain = tempAnchor.hostname.split('.')[0];
const vanityName = tempAnchor.pathname.split('/v/')[1];
const vanityName = tempAnchor.href.split('/v/')[1];
src = `${src}?v=${vanityName}&vanity_subdomain=${vanitySubdomain}&fileId=${fileId}`;
}
} else {
Expand Down

0 comments on commit ff6ae22

Please sign in to comment.