Skip to content

Instantly share code, notes, and snippets.

@Vadbeg
Created June 10, 2020 19:08
Show Gist options
  • Save Vadbeg/6c880d1f8314d457e2d58cc08cde1a75 to your computer and use it in GitHub Desktop.
Save Vadbeg/6c880d1f8314d457e2d58cc08cde1a75 to your computer and use it in GitHub Desktop.
Pass your test without problems (maybe)
variety.viewport.typeset = function(strAddress) {
var driver = variety.viewport.driver;
delete driver.typesetString;
delete driver.typesetScale;
var s = this.recoverStrFromMemory(strAddress);
if(s == "0") s = "10";
driver.typesetString = s.split('\n');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment