Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit be500c7

Browse filesBrowse files
committed
chore(translation-key): rename onPostUpdate() to render()
1 parent cbba043 commit be500c7
Copy full SHA for be500c7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Open diff view settings
Collapse file

‎app/views/common/translation-key/translation-key.js‎

Copy file name to clipboardExpand all lines: app/views/common/translation-key/translation-key.js
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ export default class TranslationKey extends HTMLElement {
55
super();
66

77
this.originalKey = this.textContent;
8-
this.onPostUpdate();
9-
10-
window.addEventListener('postupdate', this.onPostUpdate.bind(this));
8+
this.render();
119
}
1210

13-
async onPostUpdate() {
11+
async render() {
1412
const { app } = window;
1513

1614
if (this.hasAttribute('markdown')) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.