googleworkspace / browser-samples

Web samples for Google Workspace APIs
Apache License 2.0
326 stars 559 forks source link

appendPre(...) function is used in the Javascript Sources but never defined #177

Open MumblingFumbler opened 10 months ago

MumblingFumbler commented 10 months ago

Summary

appendPre(...) function is used in the Javascript Sources but never defined TODO See: https://github.com/googleworkspace/browser-samples/blob/main/apps-script/execute/index.js

Expected Behavior

Sample URL: Description:

Actual Behavior

Steps to Reproduce the Problem

1. 1. 1.

PierrickVoulet commented 10 months ago

@MumblingFumbler Thanks for reporting! Could you give it a try with the following and let us know if it behaves as expected:

function appendPre(message) {
    var pre = document.getElementById('content');
    var textContent = document.createTextNode(message + '\n');
    pre.appendChild(textContent);
  }