mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ui: domain.lang
This commit is contained in:
1 parent
680e3ccd32
commit
387bd5eb38
6 files changed
+12
-11
No files matched your search
@@ -99,7 +99,6 @@ const prismjsApiWrap = {
|
||||
const astyle = language.match(/astyle-([a-z]+)/);
|
||||
if (format && astyle && astyle[1]) {
|
||||
const [success, result] = format($code.text(), `${UserContext.astyleOptions.trim()} mode=${astyle[1]}`);
|
||||
console.log(success.result);
|
||||
code.original = $code.text();
|
||||
if (!success) Notification.error('Code format fail');
|
||||
else $code.text(result);
|
||||
|
||||
Reference in new issue
Block a user