Read known_glitches when loading alt styles SWF assets

I'm not sure why I had marked this as TODO before? Maybe I'm missing
something? But for now I'll just wire it in, I guess!
This commit is contained in:
Emi Matchu 2024-02-24 16:31:05 -08:00
parent c5cd1f2f3d
commit 7af1a97161
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ class AltStylesController < ApplicationController
swf_assets: {
only: [:id, :body_id],
include: [:zone],
methods: [:urls],
methods: [:urls, :known_glitches],
}
},
methods: [:series_name, :adjective_name, :thumbnail_url],

View file

@ -70,7 +70,7 @@ function normalizeSwfAssetToLayer(swfAssetData) {
label: swfAssetData.zone.label,
},
bodyId: swfAssetData.body_id,
knownGlitches: [], // TODO
knownGlitches: swfAssetData.known_glitches,
svgUrl: swfAssetData.urls.svg,
canvasMovieLibraryUrl: swfAssetData.urls.canvas_library,