artalk 2.4.3 → 2.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artalk",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "backendMinVersion": "2.3.0",
5
5
  "license": "LGPL-3.0",
6
6
  "description": "A Selfhosted Comment System",
@@ -30,7 +30,7 @@
30
30
  "hanabi": "^0.4.0",
31
31
  "insane": "^2.6.2",
32
32
  "marked": "^4.0.19",
33
- "abortcontroller-polyfill": "^1.7.3"
33
+ "abortcontroller-polyfill": "^1.7.5"
34
34
  },
35
35
  "scripts": {
36
36
  "dev": "vite",
package/src/context.ts CHANGED
@@ -263,8 +263,6 @@ export default class Context implements ContextApi {
263
263
  }
264
264
 
265
265
  public setDarkMode(darkMode: boolean): void {
266
- if (this.conf.darkMode === darkMode) return
267
-
268
266
  const darkModeClassName = 'atk-dark-mode'
269
267
 
270
268
  this.conf.darkMode = darkMode
@@ -433,6 +433,7 @@ export default class Editor extends Component {
433
433
  this.$plugBtnWrap.innerHTML = ''
434
434
 
435
435
  const disabledPlugs: string[] = []
436
+ if (!this.conf.imgUpload) disabledPlugs.push('upload')
436
437
  if (!this.conf.emoticons) disabledPlugs.push('emoticons')
437
438
  if (!this.conf.preview) disabledPlugs.push('preview')
438
439