PWA
This commit is contained in:
@@ -47,20 +47,16 @@ const createDecorations = (view: EditorView) => {
|
||||
|
||||
const size = result.size()
|
||||
|
||||
switch (size.length) {
|
||||
case 1:
|
||||
decoration = Decoration.widget({
|
||||
widget: new MathResult(result.toString()),
|
||||
side: 1,
|
||||
})
|
||||
break
|
||||
|
||||
case 2:
|
||||
decoration = Decoration.widget({
|
||||
widget: new Matrix(result),
|
||||
side: 1,
|
||||
})
|
||||
break
|
||||
if (size.length === 2) {
|
||||
decoration = Decoration.widget({
|
||||
widget: new Matrix(result),
|
||||
side: 1,
|
||||
})
|
||||
} else {
|
||||
decoration = Decoration.widget({
|
||||
widget: new MathResult(result.toString()),
|
||||
side: 1,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user