Skip to content

Commit

Permalink
Added documentRoot to sample.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Aug 9, 2018
1 parent 40985d6 commit bf8bbca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ const shell = require("uxp").shell;

/**
* @param {Selection} selection
* @param {RootNode} documentRoot
*/
function test(selection) {
function test(selection, documentRoot) {
selection.items.forEach(node => {
console.log("Hello world: ", node);
if (node instanceof Text) {
Expand Down

0 comments on commit bf8bbca

Please sign in to comment.