1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Post merge fixes

This commit is contained in:
ksamuel 2020-08-12 10:19:31 +02:00
parent 933118c1cd
commit 601aa5a16b
2 changed files with 62 additions and 61 deletions

View File

@ -336,13 +336,13 @@ window.zerobin = {
if (doneCallback) {
doneCallback(content);
}
}, 50);
}, 250);
}, 50);
}, 250);
}, 50);
}, 250);
}, 50);
}, 250);
},
/** Base64 decoding + uncompress + decrypt, with callbacks before each operation,
@ -391,25 +391,25 @@ window.zerobin = {
errorCallback(err);
}
}, 50); /* "End of from bits to string" */
}, 250); /* "End of from bits to string" */
} catch (err) {
errorCallback(err);
}
}, 50); /* End of "from base 64 to bits" */
}, 250); /* End of "from base 64 to bits" */
} catch (err) {
errorCallback(err);
}
}, 50); /* End of "decompress" */
}, 250); /* End of "decompress" */
} catch (err) {
errorCallback(err);
}
}, 50); /* End of "decrypt" */
}, 250); /* End of "decrypt" */
},
/** Create a random base64-like string long enought to be suitable as
@ -629,7 +629,7 @@ window.zerobin = {
}
}
return total * 1000 / size;
return total * 250 / size;
},
// prevent defaults

View File

@ -25,8 +25,10 @@
<div class="d-flex justify-content-between">
<div class="btn-group" role="group">
<button v-if="support.clipboard" @click.prevent="copyToClipboard()" type="button" id="clip-button" class="btn btn-secondary">Copy To Clipboard</button>
<button type="button" id="email-link" class="btn btn-secondary" @click="handleSendByEmail($event)>Email this</button>
<button v-if="support.clipboard" @click.prevent="copyToClipboard()" type="button" id="clip-button"
class="btn btn-secondary">Copy To Clipboard</button>
<button type="button" id="email-link" class="btn btn-secondary" @click="handleSendByEmail($event)">Email
this</button>
</div>
<div>
@ -117,8 +119,7 @@
</div>
<div>
<textarea rows="10" style="width:100%;"
class=" form-control" @keydown.prevent.ctrl.enter="encryptAndSendPaste()"
<textarea rows="10" style="width:100%;" class=" form-control" @keydown.prevent.ctrl.enter="encryptAndSendPaste()"
id="content" name="content"></textarea>
</div>