resources/assets/js/iframe_screenshot.js
//Save reference attributes to local storage
Save reference attributes to local storage
Save reference attributes to local storage
function addReferenceTostorage(json,targetIframe){
            var header = json.header;
            var category = json.category;
            var sourceUrl =targetIframe.contentWindow.location.href;
            var reference = {header:header,category:category,reference_url:sourceUrl};
            localStorage.setItem('currentReference',JSON.stringify(reference));
        }
function addReferenceTostorage ( json , targetIframe ) { var header = json . header ; var category = json . category ; var sourceUrl = targetIframe . contentWindow . location . href ; var reference = { header : header , category : category , reference_url : sourceUrl } ; localStorage . setItem ( 'currentReference' , JSON . stringify ( reference ) ) ; }
Save reference attributes to local storage
Save reference attributes to local storage