Skip to content

Commit

Permalink
🐛 Fix long length domain
Browse files Browse the repository at this point in the history
  • Loading branch information
ssakone committed Dec 29, 2023
1 parent c8fd935 commit dc1c8cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/AuthorizedApp.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
</div>
<div class="justify-between items-stretch flex gap-5 mt-2">
<div class="text-black dark:text-white text-2xl font-semibold leading-7">{domain}</div>
<div class="text-black dark:text-white text-2xl font-semibold leading-7 truncate">{domain}</div>
<div class="bg-opacity-50">
<button
class="btn btn-sm text-gray-500 px-0 py-0"
Expand Down
4 changes: 0 additions & 4 deletions static/assets/nostr-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ window.nostr = {
};

window.addEventListener("message", (message) => {
console.log(message.data);
if (
!message.data ||
message.data.response === null ||
Expand All @@ -70,9 +69,6 @@ window.addEventListener("message", (message) => {
return;

if (message.data.response.error) {
if (message.data.response.error.code === 'invalid_public_key') {
alert('Invalid public key, please switch to the correct account and refresh the page');
}
let error = new Error("keys.band: " + message.data.response.error.message);
error.stack = message.data.response.error.stack;
window.nostr._requests[message.data.id].reject(error);
Expand Down

0 comments on commit dc1c8cc

Please sign in to comment.