소스 검색

[frontend] Remove wrapping <span> for all apps

Johan Ahlen 4 년 전
부모
커밋
82f3081c39
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      desktop/core/src/desktop/js/onePageViewModel.js

+ 1 - 3
desktop/core/src/desktop/js/onePageViewModel.js

@@ -243,8 +243,6 @@ class OnePageViewModel {
         $(this).attr('href', link);
       });
 
-      $rawHtml.unwrap('span');
-
       const scriptPromises = loadScripts(scriptsToLoad);
 
       const evalScriptSync = function () {
@@ -259,7 +257,7 @@ class OnePageViewModel {
           });
         } else {
           // All evaluated
-          promise.resolve($rawHtml);
+          promise.resolve($rawHtml.children());
         }
       };