Browse Source

Sandboxing game iframe

master
Igor Zhukov 8 years ago
parent
commit
58355cb846
  1. 2
      app/js/services.js

2
app/js/services.js

@ -1823,7 +1823,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -1823,7 +1823,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
var embedType = 'text/html'
var embedHtml = '<' + embedTag + ' src="' + encodeEntities(embedUrl) + '" type="' + encodeEntities(embedType) + '" frameborder="0" border="0" webkitallowfullscreen mozallowfullscreen allowfullscreen width="' + full.width + '" height="' + full.height + '" style="width: ' + full.width + 'px; height: ' + full.height + 'px;"></' + embedTag + '>'
var embedHtml = '<' + embedTag + ' src="' + encodeEntities(embedUrl) + '" type="' + encodeEntities(embedType) + '" frameborder="0" border="0" webkitallowfullscreen mozallowfullscreen allowfullscreen width="' + full.width + '" height="' + full.height + '" style="width: ' + full.width + 'px; height: ' + full.height + 'px;" sandbox="allow-scripts allow-same-origin"></' + embedTag + '>'
full.html = $sce.trustAs('html', embedHtml)

Loading…
Cancel
Save