瀏覽代碼

docs: contrib guide

Sven 10 月之前
父節點
當前提交
2b34a2b36b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      contributing.md

+ 1 - 0
contributing.md

@@ -1378,6 +1378,7 @@ Functions marked with 🔒 need to be passed a per-session and per-plugin authen
 > 
 > async function exportData() {
 >   // compress the data to save space
+>   // note that this requires the `@grant unsafeWindow` directive in the metadata block!
 >   const exportData = JSON.stringify({ foo: "bar" });
 >   return await unsafeWindow.BYTM.UserUtils.compress(exportData, "deflate");
 > }