You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return`<script>try {window['scullyContent'] = document.body.innerHTML.split('<!--scullyContent-begin-->')[1].split('<!--scullyContent-end-->')[0];} catch(e) {console.error('scully could not pare content',e);}</script>
66
-
`;
55
+
/**
56
+
* @returns a string representing the script that parses the page and loads the scullyContent variable.
57
+
* The string is kept on one line as the focus is to keep it as small as possible.
58
+
*/
59
+
functiongetScript(): string{
60
+
// tslint:disable-next-line:no-unused-expression
61
+
return`<script>try {window['scullyContent'] = document.body.innerHTML.split('<!--scullyContent-begin-->')[1].split('<!--scullyContent-end-->')[0];} catch(e) {console.error('scully could not parse content',e);}</script>`;
0 commit comments