Skip to content

Commit

Permalink
fix: use unique top level selector
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Apr 24, 2019
1 parent fa0e429 commit 4f8811e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import wsMixin from './mixins/ws'
const waitFor = ms => new Promise(resolve => setTimeout(resolve, ms))
export default {
el: '#app',
el: '#nuxt_loading_screen',
mixins: [
capitalizeMixin,
Expand Down Expand Up @@ -166,7 +166,7 @@ export default {
// Fetch server side content
const fetchHTML = () => fetch(location.href).then(res => res.text())
const isLoading = html => html.includes('<!-- loading_app -->')
const isLoading = html => html.includes('<!-- nuxt_loading_screen -->')
let html = await fetchHTML()
// Detect if still loading and wait a few more seconds
Expand Down
4 changes: 2 additions & 2 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<title><%= html.title %></title>
</head>
<body>
<!-- loading_app -->
<div id="app"></div>
<!-- nuxt_loading_screen -->
<div id="nuxt_loading_screen"></div>
<script>window.$STATE = {STATE}</script>
<script>window.$BASE_URL = '{BASE_URL}'</script>
</body>
Expand Down

0 comments on commit 4f8811e

Please sign in to comment.