Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
weizman committed Jun 22, 2023
1 parent 9f96d4d commit 4c909fb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/scripts/use-snow.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
/*
NOTICE:
This Snow + LavaMoat scuttling integration is currently being used
with an experimental API (/~https://github.com/LavaMoat/LavaMoat/pull/462).
Changing this code must be done cautiously to avoid breaking the app!
*/

// eslint-disable-next-line import/unambiguous
(function () {
const log = console.log.bind(console);
const msg =
'Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm.';
Object.defineProperty(window.top, 'SCUTTLER', {
value: (realm, scuttle) => {
window.top.SNOW((win) => {
log('Snow detected a new realm creation attempt in MetaMask. Performing scuttling on new realm.', win);
log(msg, win);
scuttle(win);
}, realm);
},
Expand Down

0 comments on commit 4c909fb

Please sign in to comment.