From 9b40ccd6521b461e0b3d3b630b37df0af93b38da Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 26 Jul 2022 09:56:07 +0200 Subject: [PATCH] Make Img-attributes readonly --- UI/Base/Img.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/Base/Img.ts b/UI/Base/Img.ts index 96d93593e..79839183b 100644 --- a/UI/Base/Img.ts +++ b/UI/Base/Img.ts @@ -2,9 +2,10 @@ import {Utils} from "../../Utils"; import BaseUIElement from "../BaseUIElement"; export default class Img extends BaseUIElement { - private _src: string; + + private readonly _src: string; private readonly _rawSvg: boolean; - private _options: { fallbackImage?: string }; + private readonly _options: { readonly fallbackImage?: string }; constructor(src: string, rawSvg = false, options?: { fallbackImage?: string