Skip to content
Browse files

Change jQuery dependency in the code that adds the apple-touch-icon

  • Loading branch information...
1 parent ea5fbc2 commit 84eb5a1d101145e209da85cc32ed774a0c78091b @tbassetto tbassetto committed
Showing with 27 additions and 17 deletions.
  1. +7 −5 app/index.phone.html
  2. +7 −4 app/index.phone.optimized.html
  3. +7 −5 app/index.tablet.html
  4. +6 −3 app/index.tablet.optimized.html
View
12 app/index.phone.html
@@ -392,7 +392,7 @@
</div>
</script>
-<script data-joshfire-bootstrap src="http://factory.joshfire.com/bootstrap/4ffdafd83b632e0100000a83/505aeabe179fd60200000403/phone/"></script>
+ <script data-joshfire-bootstrap src="http://factory.joshfire.com/bootstrap/4ffdafd83b632e0100000a83/505aeabe179fd60200000403/phone/"></script>
<script>Joshfire.debug=true;</script>
<script type="text/javascript" src="todate.js"></script>
@@ -406,13 +406,15 @@
document.write('<script data-main="app.phone" src="joshfire-framework/lib/adapters/ios/bootstrap.js"></'+'script>');
}
</script>
-
<script type="text/javascript">
// if app icon, set "apple-touch-icon-precomposed" for webapps installed on mobile
// For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: (have to be an absolute URL)
- if(Joshfire.factory.config.app.icon) {
- $("head").append('<link rel="apple-touch-icon-precomposed" href="'+ Joshfire.factory.config.app.icon.contentURL +'">')
+ if (Joshfire.factory.config.app.icon && document.getElementsByTagName('head')[0]) {
+ var link = document.createElement('link');
+ link.rel = "apple-touch-icon-precomposed";
+ link.href = Joshfire.factory.config.app.icon.contentURL;
+ document.getElementsByTagName('head')[0].appendChild(link);
}
</script>
</body>
-</html>
+</html>
View
11 app/index.phone.optimized.html
@@ -390,7 +390,7 @@
</script>
<script data-joshfire-bootstrap src="http://factory.joshfire.com/bootstrap/4ffdafd83b632e0100000a83/505aeabe179fd60200000403/phone/"></script>
-
+
<script>Joshfire.debug=false;</script>
<script type="text/javascript" src="todate.js"></script>
<script type="text/javascript" src="vendor/moment.js"></script>
@@ -406,9 +406,12 @@
<script type="text/javascript">
// if app icon, set "apple-touch-icon-precomposed" for webapps installed on mobile
// For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: (have to be an absolute URL)
- if(Joshfire.factory.config.app.icon) {
- $("head").append('<link rel="apple-touch-icon-precomposed" href="'+ Joshfire.factory.config.app.icon.contentURL +'">')
+ if (Joshfire.factory.config.app.icon && document.getElementsByTagName('head')[0]) {
+ var link = document.createElement('link');
+ link.rel = "apple-touch-icon-precomposed";
+ link.href = Joshfire.factory.config.app.icon.contentURL;
+ document.getElementsByTagName('head')[0].appendChild(link);
}
</script>
</body>
-</html>
+</html>
View
12 app/index.tablet.html
@@ -396,8 +396,7 @@
<script data-joshfire-bootstrap src="http://factory.joshfire.com/bootstrap/4ffdafd83b632e0100000a83/505aeabe179fd60200000403/tablet/"></script>
-
- <script>Joshfire.debug=false;</script>
+ <script>Joshfire.debug=true;</script>
<script type="text/javascript" src="todate.js"></script>
<script type="text/javascript" src="vendor/moment.js"></script>
<script type="text/javascript" src="vendor/sidjs-0.1.js"></script>
@@ -412,9 +411,12 @@
<script type="text/javascript">
// if app icon, set "apple-touch-icon-precomposed" for webapps installed on mobile
// For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: (have to be an absolute URL)
- if(Joshfire.factory.config.app.icon) {
- $("head").append('<link rel="apple-touch-icon-precomposed" href="'+ Joshfire.factory.config.app.icon.contentURL +'">')
+ if (Joshfire.factory.config.app.icon && document.getElementsByTagName('head')[0]) {
+ var link = document.createElement('link');
+ link.rel = "apple-touch-icon-precomposed";
+ link.href = Joshfire.factory.config.app.icon.contentURL;
+ document.getElementsByTagName('head')[0].appendChild(link);
}
</script>
</body>
-</html>
+</html>
View
9 app/index.tablet.optimized.html
@@ -411,9 +411,12 @@
<script type="text/javascript">
// if app icon, set "apple-touch-icon-precomposed" for webapps installed on mobile
// For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: (have to be an absolute URL)
- if(Joshfire.factory.config.app.icon) {
- $("head").append('<link rel="apple-touch-icon-precomposed" href="'+ Joshfire.factory.config.app.icon.contentURL +'">')
+ if (Joshfire.factory.config.app.icon && document.getElementsByTagName('head')[0]) {
+ var link = document.createElement('link');
+ link.rel = "apple-touch-icon-precomposed";
+ link.href = Joshfire.factory.config.app.icon.contentURL;
+ document.getElementsByTagName('head')[0].appendChild(link);
}
</script>
</body>
-</html>
+</html>

0 comments on commit 84eb5a1

Please sign in to comment.
Something went wrong with that request. Please try again.