That change was probably made by davidklaw. I used his version of the plugin from his [pull request](https://github.com/marcisme/sketch-preview/pull/1). I would ask him. Also hope you don't mind, but you inspired me: [check it](https://github.com/jelias/sketch-plugins/tree/master/sketch-upload).