I hereby claim:
- I am kptdobe on github.
- I am acapt (https://keybase.io/acapt) on keybase.
- I have a public key ASDS00nMKjVbw4r-jy1iaSyb4M01HcD-gCOwAi1XRrP8RQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Gets the content owner for the current strain and sets the X-Owner header
sub hlx_owner {
set req.http.X-Trace = req.http.X-Trace + "; hlx_owner";
set req.http.X-Owner = table.lookup(strain_owners, req.http.X-Strain);
if (!req.http.X-Owner) {
set req.http.X-Owner = table.lookup(strain_owners, "default");
}
javascript: fetch(window.location.href, { method: 'PURGE'}); document.querySelectorAll('script, link[rel="stylesheet"]').forEach((t) => { fetch(t.src || t.href, { method: 'PURGE'});}); window.location.reload(); |
// returns current tab | |
const getCurrentTab = async () => { | |
const [tab] = await chrome.tabs.query({ active: true, currentWindow: true }); | |
return tab; | |
} | |
// log to current page console | |
const log = async (...arguments) => { | |
const tab = await getCurrentTab(); |