()
| 37 | } |
| 38 | |
| 39 | getTitle () { |
| 40 | if (this.user?.broadName() === 'Anonymous' || !this.user) { return 'Certificate' } |
| 41 | return `Certificate: ${this.user.broadName()}` |
| 42 | } |
| 43 | |
| 44 | hashString (str) { |
| 45 | return (__range__(0, str.length, false).map((i) => str.charCodeAt(i))).reduce((hash, char) => ((hash << 5) + hash) + char, 5381) // hash * 33 + c |