spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af in woople-theme-0.8.1 vs spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af in woople-theme-0.8.2
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1352127837.83724:@value"?{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1352836407.1468632:@value"w{I"
class:EFI"BundledAsset; FI"logical_path; FI"application.js; FI"
pathname; FI"0$root/app/assets/javascripts/application.js; FI"content_type; FI"application/javascript; FI"
-mtime; FI"2012-10-11T13:57:23-04:00; FI"length; FiI"digest; F"%4017c337190c668fac7ec995024ee924I"source; FI"
+mtime; FI"2012-11-13T14:50:14-05:00; FI"length; Fi I"digest; F"%a5daadd4a6856a036368cafd0c3e7e0aI"source; FI"
var showingPlayer;
function showMobile() {
@@ -74,6 +74,30 @@
playerResizeListener();
resizePlayer();
}
});
-; FI"required_assets_digest; F"%1337f94011b19125676b93afc62707c4I"
_version; F"%9f3b95dd7ea3030dc35985c0a8020862
+// from https://gist.github.com/1042026
+// Mobile Safari in standalone mode
+if(("standalone" in window.navigator) && window.navigator.standalone){
+
+ // If you want to prevent remote links in standalone web apps opening Mobile Safari, change 'remotes' to true
+ var noddy, remotes = true;
+
+ document.addEventListener('click', function(event) {
+
+ noddy = event.target;
+
+ // Bubble up until we hit link or top HTML element. Warning: BODY element is not compulsory so better to stop on HTML
+ while(noddy.nodeName !== "A" && noddy.nodeName !== "HTML") {
+ noddy = noddy.parentNode;
+ }
+
+ if('href' in noddy && noddy.href.indexOf('http') !== -1 && (noddy.href.indexOf(document.location.host) !== -1 || remotes)) {
+ event.preventDefault();
+ document.location.href = noddy.href;
+ }
+
+ },false);
+}
+;
+; FI"required_assets_digest; F"%3c34e0f0e94d7600d47d30519499739dI"
_version; F"%9f3b95dd7ea3030dc35985c0a8020862
\ No newline at end of file