Skip to content

Commit

Permalink
use app.replaceState() for startup page
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Jan 5, 2017
1 parent 65b49e6 commit 0696ae5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
13 changes: 13 additions & 0 deletions app/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,17 @@
version = "{% templatetag openvariable %}version{% templatetag closevariable %}" >
<name>{{ project_name }} Project</name>
<description>{{ project_name }} Project</description>

<platform name="android" />
<platform name="ios" />
<platform name="windows">
<preference name="windows-appx-target" value="uap" />
<preference name="windows-arch" value="anycpu" />
</platform>

<plugin name="cordova-plugin-camera" />
<plugin name="cordova-plugin-geolocation" />
<plugin name="cordova-plugin-whitelist" />
<access origin="*" />

</widget>
2 changes: 1 addition & 1 deletion app/index-phonegap.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
require(['js/{{ project_name }}'], function() {
require(['{{ project_name }}/main', 'wq/app'], function(ready, app) {
ready.then(function() {
app.nav('');
app.replaceState('');
});
});
});
Expand Down
6 changes: 1 addition & 5 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ <h1>{{ project_name }} Project</h1>
hardcoded list of links (rather than the default pages list) -->
{% verbatim %}{{#pages}}
<li><a href="{{rt}}/{{url}}{{#list}}/{{/list}}">{{name}} {{#list}}list{{/list}}</a></li>
{{/pages}}
{{^pages}}{{#page_config.pages}}
<li><a href="{{rt}}/{{url}}{{#list}}/{{/list}}">{{name}} {{#list}}list{{/list}}</a></li>
{{/page_config.pages}}{{/pages}}
{% endverbatim %}
{{/pages}}{% endverbatim %}
</ul>
</div>
<p class="footer">
Expand Down

0 comments on commit 0696ae5

Please sign in to comment.