mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 06:26:16 -04:00
Merge branch 'master' into httpinsecure
This commit is contained in:
commit
77419ec2c1
5 changed files with 8 additions and 5 deletions
|
@ -1513,6 +1513,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
} else if (typeof args === 'string') {
|
||||
// convert string to array if needed
|
||||
args = [args];
|
||||
} else if (args instanceof Error) {
|
||||
// extract message into array if needed
|
||||
args = [args.message];
|
||||
}
|
||||
|
||||
// pass to custom handler if defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue