| … | … | @@ -47,12 +47,12 @@ export const profile = async () => { |
| 47 | 47 | const croppedImage = canvas.toDataURL() |
| 48 | 48 | avatarImg.src = croppedImage |
| 49 | 49 | const hash = await bogbot.make(croppedImage) |
| 50 | | await bogbot.save('image', hash) |
| 50 | await bogbot.put('image', hash) |
| 51 | 51 | } else { |
| 52 | 52 | const croppedImage = canvas.toDataURL() |
| 53 | 53 | avatarImg.src = img.src |
| 54 | 54 | const hash = await bogbot.make(img.src) |
| 55 | | await bogbot.save('image', hash) |
| 55 | await bogbot.put('image', hash) |
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | img.src = e.target.result |
| … | … | @@ -79,7 +79,7 @@ export const profile = async () => { |
| 79 | 79 | h('button', {onclick: async () => { |
| 80 | 80 | if (namer.value) { |
| 81 | 81 | namer.placeholder = namer.value |
| 82 | | await bogbot.save('name', namer.value) |
| 82 | await bogbot.put('name', namer.value) |
| 83 | 83 | namer.value = '' |
| 84 | 84 | } |
| 85 | 85 | }}, ['Save']) |