bbovenzi commented on a change in pull request #19211:
URL: https://github.com/apache/airflow/pull/19211#discussion_r737037149



##########
File path: airflow/www/static/js/dag_code.js
##########
@@ -17,13 +17,19 @@
  * under the License.
  */
 
-/* global $ */
+/* global window, $ */
 
 import getMetaValue from './meta_value';
 
+function toggleWrap() {
+  $('.code pre').toggleClass('wrap');
+}
+
 const isWrapped = getMetaValue('wrapped');
 
 // pygments generates the HTML so set wrap toggle via js
 if (isWrapped) {

Review comment:
       `isWrapped` is not being translated to a js boolean correctly. Would you 
mind changing this line?
   ```suggestion
   if (isWrapped === 'True') {
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to