Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd3b053c

Browse files
committed
Force inputFormat on ui helper since it is always json
1 parent5b5feda commitd3b053c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/ui/js/diff2html-ui.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131

3232
Diff2HtmlUI.prototype.draw=function(targetId,config){
3333
varcfg=config||{};
34+
cfg.inputFormat='json';
3435
var$target=this._getTarget(targetId);
35-
$target.html(Diff2Html.getPrettyHtml(diffJson,cfg));
36+
$target.html(Diff2Html.getPrettyHtml(diffJson,cfg.inputFormat));
3637

37-
synchronisedScroll($target,config);
38+
synchronisedScroll($target,cfg);
3839
};
3940

4041
functionsynchronisedScroll($target,config){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp