Skip to content

Commit

Permalink
Fix allowTemplateFromDomModule opt-in
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jul 23, 2018
1 parent a199aa9 commit 3672737
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mixins/element-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ export const ElementMixin = dedupingMixin(base => {
*/
function getTemplateFromDomModule(is) {
let template = null;
if (is && allowTemplateFromDomModule) {
// Under strictTemplatePolicy in 3.x+, dom-module lookup is only allowed
// when opted-in via allowTemplateFromDomModule
if (is && (!strictTemplatePolicy || allowTemplateFromDomModule)) {
template = DomModule.import(is, 'template');
// Under strictTemplatePolicy, require any element with an `is`
// specified to have a dom-module
Expand Down

0 comments on commit 3672737

Please sign in to comment.