| 243 | } |
| 244 | |
| 245 | private loadStyle(content: string | undefined | null, level: AssetLevel, isUrl?: boolean, id?: string) { |
| 246 | if (!content) { |
| 247 | return; |
| 248 | } |
| 249 | let point: StylePoint | undefined; |
| 250 | if (id) { |
| 251 | point = this.stylePoints.get(id); |
| 252 | if (!point) { |
| 253 | point = new StylePoint(level, id); |
| 254 | this.stylePoints.set(id, point); |
| 255 | } |
| 256 | } else { |
| 257 | point = new StylePoint(level); |
| 258 | } |
| 259 | return isUrl ? point.applyUrl(content) : point.applyText(content); |
| 260 | } |
| 261 | |
| 262 | private loadScript(content: string | undefined | null, isUrl?: boolean, scriptType?: string) { |
| 263 | if (!content) { |