Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
b682267b
Commit
b682267b
authored
Mar 21, 2017
by
Penn Su
Committed by
Arunoda Susiripala
Mar 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix URL (#1467)
parent
b2fabf0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
_document.js
examples/with-amp/pages/_document.js
+1
-1
No files found.
examples/with-amp/pages/_document.js
View file @
b682267b
...
@@ -2,7 +2,7 @@ import Document, { Head } from 'next/document'
...
@@ -2,7 +2,7 @@ import Document, { Head } from 'next/document'
import
{
DOMProperty
}
from
'react-dom/lib/ReactInjection'
import
{
DOMProperty
}
from
'react-dom/lib/ReactInjection'
// By default React limit the set of valid DOM elements and attributes
// By default React limit the set of valid DOM elements and attributes
// (https://github.com/facebook/react/issues140) this config whitelist
// (https://github.com/facebook/react/issues
/
140) this config whitelist
// Amp elements/attributes
// Amp elements/attributes
DOMProperty
.
injectDOMPropertyConfig
({
DOMProperty
.
injectDOMPropertyConfig
({
Properties
:
{
amp
:
DOMProperty
.
MUST_USE_ATTRIBUTE
},
Properties
:
{
amp
:
DOMProperty
.
MUST_USE_ATTRIBUTE
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment