diff --git a/snap.manifest.json b/snap.manifest.json index 53fc7d7..65b0cf2 100644 --- a/snap.manifest.json +++ b/snap.manifest.json @@ -3,7 +3,7 @@ "description": "The Sui Snap.", "proposedName": "Sui Manager", "source": { - "shasum": "Qlo4/eo8vZpj91LYzm4Rxvr1LnU01t+7HCeME7IFkMY=", + "shasum": "GfyqCjrmVUnxXyre3Zfm8ahjmqyTAZ1pCPxen4XVHVk=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/src/index.js b/src/index.js index 863efee..ad88e80 100644 --- a/src/index.js +++ b/src/index.js @@ -9,8 +9,8 @@ module.exports.onRpcRequest = async ({ origin, request }) => { if ( !origin || ( - !origin.match(/^https?:\/\/localhost:[0-9]{1,4}$/) && - !origin.match(/^https?:\/\/(?:\S+\.)?elliwallet\.dev$/) + !origin.match(/^https:\/\/(?:\S+\.)?elliwallet\.com$/) && + !origin.match(/^https:\/\/(?:\S+\.)?elliwallet\.dev$/) ) ) { throw new Error('Invalid origin');