Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
a5edab2423b3d5d3fd0cc0a6325dac51c328a3bf
/
.
/
static-old
/
urlshorten-gist.js
blob: a0cfad0f07f5ccd45b718b8db694c60598b5fed7 [
file
] [
log
] [
blame
] [
raw
]
function
shortenURL
(
url
,
done
)
{
makeGist
(
function
(
msg
)
{
done
(
document
.
location
.
origin
+
"#g="
+
msg
.
id
);
},
function
(
failure
)
{
done
(
"Failed: "
+
failure
);
}
);
}