Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patmigliaccio/0e36f955c766301bc509d7dfd39db519 to your computer and use it in GitHub Desktop.
Save patmigliaccio/0e36f955c766301bc509d7dfd39db519 to your computer and use it in GitHub Desktop.
patmigliaccio.com/client-side-security 7/27/17
var a = ["data", "parse", "then", "/assets/css/svg/generate", "", "split", "trim", "pop", "unshift", "forEach", "join"];
function requestGeneratedSVG() {
return xhr('/assets/css/svg/generate')['then'](function(b) {
let c = parseSVGResponse(b['data']);
return JSON['parse'](atob(c))
})
}
function parseSVGResponse(d) {
var e = d['split']('');
for (let f = 0; f < 64; f++) {
var g = e['pop']()['trim']();
e['unshift'](g)
};
var h = [];
e['forEach'](function(i) {
h['unshift'](i)
});
return h['join']('')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment