diff --git a/instagram/webview.js b/instagram/webview.js index d0ff08b..33b27e8 100644 --- a/instagram/webview.js +++ b/instagram/webview.js @@ -16,7 +16,12 @@ module.exports = (Franz, options) => { // inject franz.css stylesheet Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); - + + // Changes user agent to mobile to show the upload photo button + window.navigator.__defineGetter__('userAgent', function () { + return 'Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9B206'; + }); + // check for new messages every second and update Franz badge Franz.loop(getMessages); };