File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
website/templates/pages/demo Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import './demo.css';
21
21
22
22
type URLParams = {
23
23
diff ?: string ;
24
+ diffTooBigMessage ?: string ;
24
25
[ key : string ] : string | boolean | number | undefined ;
25
26
} ;
26
27
@@ -116,13 +117,13 @@ function prepareRequest(url: string): Request {
116
117
}
117
118
118
119
function getConfiguration ( urlParams : URLParams ) : Diff2HtmlUIConfig {
119
- // Removing `diff` form `urlParams` to avoid being inserted
120
+ // Removing `diff` and `diffTooBigMessage` form `urlParams` to avoid being inserted
120
121
// eslint-disable-next-line @typescript-eslint/no-unused-vars
121
- const { diff, ...urlParamsRest } = urlParams ;
122
- const config : URLParams = {
122
+ const { diff, diffTooBigMessage , ...urlParamsRest } = urlParams ;
123
+ const config = ( {
123
124
...defaultDiff2HtmlUIConfig ,
124
125
...urlParamsRest ,
125
- } ;
126
+ } as unknown ) as URLParams ;
126
127
127
128
return
3FE0
Object . entries ( config ) . reduce ( ( object , [ k , v ] ) => {
128
129
const newObject = ! Number . isNaN ( Number ( v ) )
You can’t perform that action at this time.
0 commit comments