kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #2875 from bromagosa/blocksZoom-param
added blocksZoom URL param to set blocks scale for the current sessionsnap7
commit
4ce0c9d204
|
@ -381,6 +381,11 @@ IDE_Morph.prototype.openIn = function (world) {
|
|||
if (dict.noExitWarning) {
|
||||
window.onbeforeunload = nop;
|
||||
}
|
||||
if (dict.blocksZoom) {
|
||||
myself.savingPreferences = false;
|
||||
myself.setBlocksScale(Math.max(1,Math.min(dict.blocksZoom, 12)));
|
||||
myself.savingPreferences = true;
|
||||
}
|
||||
|
||||
// only force my world to get focus if I'm not in embed mode
|
||||
// to prevent the iFrame from involuntarily scrolling into view
|
||||
|
|
Ładowanie…
Reference in New Issue