{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/localForage/issues/393","labels_url":"https://api.github.com/repos/mozilla/localForage/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/localForage/issues/393/comments","events_url":"https://api.github.com/repos/mozilla/localForage/issues/393/events","html_url":"https://github.com/mozilla/localForage/issues/393","id":92105387,"number":393,"title":"Does not work in WP8 XAML WebBrowser Control","user":{"login":"SunboX","id":83344,"avatar_url":"https://avatars.githubusercontent.com/u/83344?v=3","gravatar_id":"","url":"https://api.github.com/users/SunboX","html_url":"https://github.com/SunboX","followers_url":"https://api.github.com/users/SunboX/followers","following_url":"https://api.github.com/users/SunboX/following{/other_user}","gists_url":"https://api.github.com/users/SunboX/gists{/gist_id}","starred_url":"https://api.github.com/users/SunboX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunboX/subscriptions","organizations_url":"https://api.github.com/users/SunboX/orgs","repos_url":"https://api.github.com/users/SunboX/repos","events_url":"https://api.github.com/users/SunboX/events{/privacy}","received_events_url":"https://api.github.com/users/SunboX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-30T14:12:37Z","updated_at":"2015-07-01T08:33:45Z","closed_at":null,"body":"Using the Browser (IE) on Windows Phone 8 works fine, but using a XAML WebBrowser Control the `callback` won't be called at all.\r\n\r\n```js\r\nlocalforage.getItem('storageKey', callback);\r\n```"},"comment":{"url":"https://api.github.com/repos/mozilla/localForage/issues/comments/117538127","html_url":"https://github.com/mozilla/localForage/issues/393#issuecomment-117538127","issue_url":"https://api.github.com/repos/mozilla/localForage/issues/393","id":117538127,"user":{"login":"SunboX","id":83344,"avatar_url":"https://avatars.githubusercontent.com/u/83344?v=3","gravatar_id":"","url":"https://api.github.com/users/SunboX","html_url":"https://github.com/SunboX","followers_url":"https://api.github.com/users/SunboX/followers","following_url":"https://api.github.com/users/SunboX/following{/other_user}","gists_url":"https://api.github.com/users/SunboX/gists{/gist_id}","starred_url":"https://api.github.com/users/SunboX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunboX/subscriptions","organizations_url":"https://api.github.com/users/SunboX/orgs","repos_url":"https://api.github.com/users/SunboX/repos","events_url":"https://api.github.com/users/SunboX/events{/privacy}","received_events_url":"https://api.github.com/users/SunboX/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T08:33:45Z","updated_at":"2015-07-01T08:33:45Z","body":"For debugging purpose, proxy `console.log()` calls to the Visual Studio Console Output window:\r\n```csharp\r\n        private void Browser_Navigated(object sender, NavigationEventArgs e)\r\n        {\r\n            Debug.WriteLine(\"Browser_Navigated :: \" + e.Uri);\r\n\r\n            const string script = @\"\r\n(function(win) {\r\n    function stringify() { \r\n        // Convert arguments to strings and concat them with comma.\r\n        return Array.prototype.map.call( arguments, function argumentToString( argument ) { \r\n            // Return primitives as string.\r\n            if( typeof argument === 'string' || typeof argument === 'number' ) {\r\n                return argument;\r\n            }\r\n            if( typeof argument === 'function' ) {\r\n                return argument.toString();\r\n            }\r\n            // Convert complex arguments to JSON.\r\n            try {\r\n                return JSON.stringify( argument );\r\n            } catch( ignored ) {\r\n                return argument.toString();\r\n            }\r\n        }).join(','); \r\n    }\r\n    var exec = function() { \r\n        window.external.Notify( 'ConsoleLog/' + stringify.apply( null, arguments ) );\r\n    };\r\n    var cons = win.console = win.console || {};\r\n    cons.log = exec;\r\n    cons.debug = exec;\r\n    cons.info = function() { exec( 'INFO:' + stringify.apply( null, arguments ) ); };\r\n    cons.warn = function() { exec( 'WARN:' + stringify.apply( null, arguments ) ); };\r\n    cons.error = function() { exec( 'ERROR:' + stringify.apply( null, arguments ) ); };\r\n\r\n    win.onerror = cons.error;\r\n\r\n})(window);\r\n\r\n\";\r\n            Browser.InvokeScript(\"eval\", new[] { script });\r\n        }\r\n```"}}