Skip to content

Commit

Permalink
user DOM instead of PLATFORM.global.document
Browse files Browse the repository at this point in the history
  • Loading branch information
obedm503 committed Apr 5, 2018
1 parent 63f4f81 commit 3f5affe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import 'reflect-metadata';
import { WebpackLoader } from 'aurelia-loader-webpack';
import { initialize } from 'aurelia-pal-browser';
import { Aurelia, PLATFORM } from 'aurelia-framework';
import { DOM, PLATFORM } from 'aurelia-pal';
import { Aurelia } from 'aurelia-framework';

import { bootstrap } from './bootstrapper';
import { App } from './app/app';

(async () => {
const host = PLATFORM.global.document.getElementById('root');
const host = DOM.getElementById('root');
// there shouldn't be a loader, because aurelia should use standard imports
const loader = new WebpackLoader();
const aurelia: Aurelia = await bootstrap(host, initialize, loader);
Expand Down

0 comments on commit 3f5affe

Please sign in to comment.