snipt

Ctrl+h for KB shortcuts

JavaScript

Cordova/AngularJS: jsHybugger protocol error

1
2
3
app.config(['$compileProvider', function($compileProvider) {
    $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|content):/);
}]);
https://snipt.net/embed/13f1519c9d8cd4ab08a5ef0026d01178/
/raw/13f1519c9d8cd4ab08a5ef0026d01178/
13f1519c9d8cd4ab08a5ef0026d01178
js
JavaScript
3
2016-12-30T10:46:57
True
False
True
Jan 23, 2014 at 05:29 AM
/api/public/snipt/107969/
cordovaangularjs-jshybugger-protocol-error
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nx">app</span><span class="p">.</span><span class="nx">config</span><span class="p">([</span><span class="s1">&#39;$compileProvider&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">$compileProvider</span><span class="p">)</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="nx">$compileProvider</span><span class="p">.</span><span class="nx">aHrefSanitizationWhitelist</span><span class="p">(</span><span class="sr">/^\s*(https?|ftp|mailto|file|content):/</span><span class="p">);</span> </span><span id="L-3"><a name="L-3"></a><span class="p">}]);</span> </span></pre></div> </td></tr></table>
cordova, error, jsHybugger, phonegap, protocol

Text only

Cordova/Phonegap (iOS5, iOS6): Status bar offset problem, Webview height scrollbar

Just remove the device-height attribute on your meta viewport
https://snipt.net/embed/ef142d6f09b89dcdad66a3c70d886061/
/raw/ef142d6f09b89dcdad66a3c70d886061/
ef142d6f09b89dcdad66a3c70d886061
text
Text only
1
2017-01-01T07:48:55
True
False
True
Jan 15, 2014 at 11:27 AM
/api/public/snipt/106094/
cordovaphonegap-ios5-ios6-status-bar-offset-problem-webview-height-scrollbar
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Just remove the device-height attribute on your meta viewport </span></pre></div> </td></tr></table>
"status bar", cordova, height, ios, phonegap, webview