Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Define This hacky function
- function sclone_hack(obj){
- var oldState = history.state;
- history.replaceState(obj, null);
- var clonedObj = history.state;
- history.replaceState(oldState, null);
- return clonedObj;
- }
- // Replace this
- unsafeWindow.rawReview = cloneInto(data.reviews[i], unsafeWindow); //2689
- //With
- if ((typeof cloneInto != 'undefined') && (typeof cloneInto == 'function')){
- unsafeWindow.rawReview = cloneInto(data.reviews[i], unsafeWindow);
- } else {
- unsafeWindow.rawReview = sclone_hack(data.reviews[i]);
- }
- // Replace this
- unsafeWindow.legacyUrls = cloneInto (data, unsafeWindow); //2756
- // With
- if ((typeof cloneInto != 'undefined') && (typeof cloneInto == 'function')){
- unsafeWindow.legacyUrls = cloneInto (data, unsafeWindow);
- } else {
- unsafeWindow.legacyUrls = sclone_hack(data);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement