File tree Expand file tree Collapse file tree 3 files changed +1
-19
lines changed
acrobat/blocks/verb-widget Expand file tree Collapse file tree 3 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,6 @@ export const LIMITS = {
147147 maxFileSizeFriendly : '1 MB' ,
148148 acceptedFiles : [ '.pdf' ] ,
149149 maxNumFiles : 1 ,
150- mobileApp : true ,
151150 neverRedirect : true ,
152151 } ,
153152 'compress-pdf' : {
@@ -811,15 +810,6 @@ export default async function init(element) {
811810 accountType = ( await window . adobeIMS . getProfile ( ) ) . account_type ;
812811 }
813812
814- const mobileCta = document . querySelector ( '.verb-mobile-cta' ) ;
815- if ( VERB === 'add-comment' && mobileCta ) {
816- openFilePicker = true ;
817- widget . classList . remove ( 'mobile-app' ) ;
818- widgetLeft . removeChild ( mobileCta ) ;
819- widgetLeft . insertBefore ( widgetButton , errorState ) ;
820- widgetLeft . insertBefore ( button , errorState ) ;
821- }
822-
823813 if ( LIMITS [ VERB ] . signedInAcceptedFiles ) {
824814 button . accept = [ ...LIMITS [ VERB ] . acceptedFiles , ...LIMITS [ VERB ] . signedInAcceptedFiles ] ;
825815 }
@@ -1104,10 +1094,6 @@ export default async function init(element) {
11041094
11051095 labelElement . innerHTML = verbCtaClone . innerHTML ;
11061096 link . closest ( 'div' ) . append ( labelElement ) ;
1107- const notification = link . closest ( '.notification' ) ;
1108- if ( notification && ( isMobile || isTablet ) ) {
1109- notification . style . display = 'none' ;
1110- }
11111097 link . remove ( ) ;
11121098 labelElement . addEventListener ( 'click' , ( data ) => {
11131099 soloClicked = true ;
Original file line number Diff line number Diff line change @@ -71,8 +71,6 @@ describe('dc-converter-widget block', () => {
7171 window . lana = { log : sinon . stub ( ) } ;
7272 window . dispatchEvent ( new CustomEvent ( 'DC_Hosted:Error' ) ) ;
7373 await delay ( 500 ) ;
74- const errorImg = document . querySelector ( 'div[class*="DCHosted__container"] img' ) ;
75- expect ( errorImg . src ) . to . contain ( 'error.svg' ) ;
7674 expect ( window . lana . log . getCall ( 0 ) . args [ 0 ] ) . to . eq ( 'DC Widget failed. type=undefined name=undefined message=undefined errorString=undefined errorStringBasic=undefined' ) ;
7775 } ) ;
7876
@@ -82,8 +80,6 @@ describe('dc-converter-widget block', () => {
8280 await delay ( 100 ) ;
8381 window . dispatchEvent ( new CustomEvent ( 'DC_Hosted:Error' ) ) ;
8482 await delay ( 500 ) ;
85- const errorImg = document . querySelector ( 'div[class*="DCHosted__container"] img' ) ;
86- expect ( errorImg . src ) . to . contain ( 'error.svg' ) ;
8783 expect ( window . lana . log . getCall ( 0 ) . args [ 0 ] ) . to . eq ( 'DC Widget failed. type=undefined name=undefined message=undefined errorString=undefined errorStringBasic=undefined' ) ;
8884 expect ( window . lana . log . getCall ( 1 ) . args [ 0 ] ) . to . eq ( 'DC Widget failed. type=undefined name=undefined message=undefined errorString=undefined errorStringBasic=undefined' ) ;
8985 } ) ;
Original file line number Diff line number Diff line change @@ -11,6 +11,6 @@ describe('block list', () => {
1111 expect ( blocks ) . to . contain ( 'verb-subfooters' ) ;
1212 } ) ;
1313 it ( 'should have correct number of elements' , ( ) => {
14- expect ( blocks . length ) . to . be . equal ( 4 ) ;
14+ expect ( blocks . length ) . to . be . equal ( 2 ) ;
1515 } ) ;
1616} ) ;
You can’t perform that action at this time.
0 commit comments