Skip to content

Commit

Permalink
Fix compatibility after f66199a
Browse files Browse the repository at this point in the history
Website only, not API
  • Loading branch information
GarboMuffin committed Jun 21, 2023
1 parent f340267 commit 640b107
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/p4/PackagerOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
defaultOptions.extensions = projectData.project.analysis.extensions;
const options = writablePersistentStore(`PackagerOptions.${projectData.uniqueId}`, defaultOptions);
// Compatibility with https://github.com/TurboWarp/packager/commit/f66199abd1c896c11aa69247275a1594fdfc95b8
$options.extensions = $options.extensions.map(i => {
if (typeof i === 'object' && i) return i.url || '';
return i;
});
const hasMagicComment = (magic) => projectData.project.analysis.stageComments.find(
(text) => text.split('\n').find((line) => line.endsWith(magic))
);
Expand Down

0 comments on commit 640b107

Please sign in to comment.