Skip to content

Commit

Permalink
Merge pull request #107 from pengz1/Update-url-location-strategy
Browse files Browse the repository at this point in the history
 Update head icon path and app-routing location strategy
  • Loading branch information
pengz1 authored Jul 10, 2018
2 parents 1195e1b + 3813214 commit 9960e2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions config/head-config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ module.exports = {
/**
* <link> tags for favicons
*/
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: '/assets/icon/favicon.ico' },
{ rel: 'icon', type: 'image/png', sizes: '96x96', href: '/assets/icon/favicon.ico' },
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: '/assets/icon/favicon.ico' },
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: 'assets/icon/favicon.ico' },
{ rel: 'icon', type: 'image/png', sizes: '96x96', href: 'assets/icon/favicon.ico' },
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: 'assets/icon/favicon.ico' },

/**
* <link> tags for a Web App Manifest
*/
{ rel: 'manifest', href: '/assets/manifest.json' }
{ rel: 'manifest', href: 'assets/manifest.json' }
],
meta: [
{ name: 'msapplication-TileColor', content: '#00bcd4' },
{ name: 'msapplication-TileImage', content: '/assets/icon/ms-icon-144x144.png', '=content': true },
{ name: 'msapplication-TileImage', content: 'assets/icon/ms-icon-144x144.png', '=content': true },
{ name: 'theme-color', content: '#00bcd4' }
]
};
3 changes: 2 additions & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { ROUTES } from './app.routes';
imports: [
RouterModule.forRoot(ROUTES, {
//If we don't want to use hash mode, we need to change RackHD
useHash: Boolean(history.pushState) === true,
// useHash: Boolean(history.pushState) === true,
useHash: true,
preloadingStrategy: PreloadAllModules
// enableTracing: true
})
Expand Down

0 comments on commit 9960e2e

Please sign in to comment.