From cc08e0adcfdf270176e7ac4d28410a4e91e0ae42 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 23 Jul 2015 22:22:45 +0200 Subject: [PATCH] Fixed formatting of data strings. --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index fb604a8d8e..4b130f1dcb 100644 --- a/index.html +++ b/index.html @@ -303,8 +303,9 @@ var formatGasEstimates = function(data) { return text; }; var formatAssemblyText = function(asm, prefix, source) { - var text = ''; - text += prefix + '.code\n'; + if (typeof(asm) == typeof('') || asm === null || asm === undefined) + return prefix + asm + '\n'; + var text = prefix + '.code\n'; $.each(asm['.code'], function(i, item) { var v = item.value === undefined ? '' : item.value; var src = '';