Browse Source

fixed inlineJS

Piotr Labudda 7 năm trước cách đây
mục cha
commit
0fb8655fd1
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      SE/se-lib/UI.php

+ 1 - 0
SE/se-lib/UI.php

@@ -285,6 +285,7 @@ class UI {
 			echo "  var {$name} = " . json_encode($var) . ";\n";
 		}
 		echo file_get_contents($jsFile);
+		echo "\n;\n";
 		echo "  if (module && module.exports && Object.keys(module.exports).length) {" . "\n";
 		echo "    Object.keys(module.exports).forEach(function (key) {" . "\n";
 		echo "      global[key] = module.exports[key];" . "\n";