mirror of
https://github.com/Polymer/polymer-starter-kit.git
synced 2025-02-25 18:55:22 -06:00
fix rootPath better
This commit is contained in:
@@ -15,7 +15,7 @@ import './my-view1.js';
|
||||
import './my-view2.js';
|
||||
import './my-view3.js';
|
||||
import './my-view404.js';
|
||||
import { setPassiveTouchGestures } from '../node_modules/@polymer/polymer/lib/utils/settings.js';
|
||||
import { setPassiveTouchGestures, setRootPath } from '../node_modules/@polymer/polymer/lib/utils/settings.js';
|
||||
import { html } from '../node_modules/@polymer/polymer/lib/utils/html-tag.js';
|
||||
//import { importHref } from '../node_modules/@polymer/polymer/lib/utils/import-href.js';
|
||||
// Gesture events like tap and track generated from touch will not be
|
||||
@@ -129,6 +129,11 @@ class MyApp extends Element {
|
||||
};
|
||||
}
|
||||
|
||||
ready() {
|
||||
super.ready();
|
||||
setRootPath(Polymer.rootPath);
|
||||
}
|
||||
|
||||
static get observers() {
|
||||
return [
|
||||
'_routePageChanged(routeData.page)',
|
||||
|
||||
Reference in New Issue
Block a user